update for why we sleep
This commit is contained in:
parent
dca89009f5
commit
f0b41f3fb7
1 changed files with 4 additions and 1 deletions
5
stack.sh
5
stack.sh
|
@ -908,7 +908,10 @@ function screen_it {
|
||||||
NL=`echo -ne '\015'`
|
NL=`echo -ne '\015'`
|
||||||
if [[ "$ENABLED_SERVICES" =~ "$1" ]]; then
|
if [[ "$ENABLED_SERVICES" =~ "$1" ]]; then
|
||||||
screen -S stack -X screen -t $1
|
screen -S stack -X screen -t $1
|
||||||
sleep 0.5
|
# sleep to allow bash to be ready to be send the command - we are
|
||||||
|
# creating a new window in screen and then sends characters, so if
|
||||||
|
# bash isn't running by the time we send the command, nothing happens
|
||||||
|
sleep 1
|
||||||
screen -S stack -p $1 -X stuff "$2$NL"
|
screen -S stack -p $1 -X stuff "$2$NL"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue