File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -988,10 +988,16 @@ case "${1}" in
988
988
989
989
START_TIME=` date +%s`
990
990
JOIN_TIME=0
991
-
992
991
if [ " ${2} " -eq " ${2} " ] & > /dev/null; then
993
992
JOIN_TIME=${2}
994
993
fi
994
+
995
+ if [ " ${JOIN_TIME} " -gt 0 ]; then
996
+ echo -e " ${COLOR_GREEN}${COLOR_BOLD} Waiting for ${JOIN_TIME} seconds or ${APPLICATION_NAME} to exit"
997
+ else
998
+ echo -e " ${COLOR_GREEN}${COLOR_BOLD} Waiting for ${APPLICATION_NAME} to exit"
999
+ fi
1000
+
995
1001
while screen_status " ${SCREEN_NAME} " && ([ " ${JOIN_TIME} " -le 0 ] || [ " $(( $(date +% s) - ${START_TIME} )) " -lt " ${JOIN_TIME} " ]); do
996
1002
SLEEP_TIME=10
997
1003
@@ -1003,7 +1009,7 @@ case "${1}" in
1003
1009
done
1004
1010
1005
1011
if screen_status " ${SCREEN_NAME} " ; then
1006
- echo -e " ${COLOR_YELLOW}${COLOR_BOLD} Join was cancelled due to insufficient time !${COLOR_RESET} "
1012
+ echo -e " ${COLOR_YELLOW}${COLOR_BOLD} Join was cancelled because waittime exceeded ${JOIN_TIME} seconds !${COLOR_RESET} "
1007
1013
else
1008
1014
echo -e " ${COLOR_GREEN}${COLOR_BOLD}${APPLICATION_NAME} stopped!${COLOR_RESET} "
1009
1015
fi
You can’t perform that action at this time.
0 commit comments