add use_tmux to debian variant

This commit is contained in:
Nils 2021-07-10 20:10:14 +02:00
parent 609ef528ef
commit 66fe5e35ed
Signed by: byreqz
GPG Key ID: 396A62D7D436749E
1 changed files with 5 additions and 2 deletions

View File

@ -19,5 +19,8 @@ if [ -z "$command" ];then
command="curl -s https://raw.githubusercontent.com/dylanaraps/pfetch/master/pfetch | bash && figlet no command set && read swag"
fi
/gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s "$title" "$command"
if [ "$use_tmux" == "false" ];then
/gotty -p "$port" $creds --title-format "$title" "$command"
else
/gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s "$title" "$command"
fi