TT#35550 Improve debug output for sleep in 'ngcpstatus'

Change-Id: I9170324113fbb5d6bcf733e7ae48092bb8d060cc
changes/97/20297/1
Alexander Lutay 8 years ago
parent 35af94710f
commit 87f76370b9

@ -2520,10 +2520,13 @@ if [ "$(get_deploy_status)" != "error" ] ; then
set_deploy_status "finished"
fi
# if ngcpstatus boot option is used wait for a specific so a
# remote host has a chance to check for deploy status "finished",
# defaults to 0 seconds otherwise
sleep "$STATUS_WAIT"
if [[ -n "$STATUS_WAIT" && "$STATUS_WAIT" != 0 ]]; then
# if ngcpstatus boot option is used wait for a specific so a
# remote host has a chance to check for deploy status "finished",
# defaults to 0 seconds otherwise
echo "Sleeping for $STATUS_WAIT seconds (as requested via boot option 'ngcpstatus')"
sleep "$STATUS_WAIT"
fi
if "$INTERACTIVE" ; then
exit 0

Loading…
Cancel
Save