mirror of
https://github.com/byReqz/gotty-docker.git
synced 2024-11-21 23:23:14 +00:00
add use_tmux to debian variant
This commit is contained in:
parent
609ef528ef
commit
66fe5e35ed
@ -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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user