File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -1281,17 +1281,12 @@ fi
12811281function screen_it {
12821282 NL=` echo -ne ' \015' `
12831283 if [[ " $ENABLED_SERVICES " =~ " $1 " ]]; then
1284- if [[ " $USE_TMUX " =~ " yes" ]]; then
1285- tmux new-window -t stack -a -n " $1 " " bash"
1286- tmux send-keys " $2 " C-M
1287- else
1288- screen -S stack -X screen -t $1
1289- # sleep to allow bash to be ready to be send the command - we are
1290- # creating a new window in screen and then sends characters, so if
1291- # bash isn't running by the time we send the command, nothing happens
1292- sleep 1.5
1293- screen -S stack -p $1 -X stuff " $2 $NL "
1294- fi
1284+ screen -S stack -X screen -t $1
1285+ # sleep to allow bash to be ready to be send the command - we are
1286+ # creating a new window in screen and then sends characters, so if
1287+ # bash isn't running by the time we send the command, nothing happens
1288+ sleep 1.5
1289+ screen -S stack -p $1 -X stuff " $2 $NL "
12951290 fi
12961291}
12971292
You can’t perform that action at this time.
0 commit comments