From 66fe5e35ed720a32b563ee35364dc6d47a14c007 Mon Sep 17 00:00:00 2001 From: Nils Date: Sat, 10 Jul 2021 20:10:14 +0200 Subject: [PATCH] add use_tmux to debian variant --- Debian/run-deb.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Debian/run-deb.sh b/Debian/run-deb.sh index 1e5bbef..4b52ab3 100644 --- a/Debian/run-deb.sh +++ b/Debian/run-deb.sh @@ -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