X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fscripts%2Foperation_signal.sh;h=87e4ce5a586b9bac241d032ce36bb11b9cec4090;hp=4a9d0a79908321d6d98fbad579176019f03cc8c1;hb=ea1b80f8fd0c1b806460f98f4e4cf433698857d9;hpb=8b8309d46e9ccc968d3a315e86e70c5a806706d0 diff --git a/example/diameter/launcher/resources/scripts/operation_signal.sh b/example/diameter/launcher/resources/scripts/operation_signal.sh index 4a9d0a7..87e4ce5 100755 --- a/example/diameter/launcher/resources/scripts/operation_signal.sh +++ b/example/diameter/launcher/resources/scripts/operation_signal.sh @@ -116,17 +116,17 @@ check_pid $PID kill -s SIGUSR2 $PID # Detect EOF and print all except that last line: -count=$((10*timeout)) +count=$((10*timeout)) expired=yes -while [ $count -gt 0 ] -do - sleep 0.1 - count=$((count-1)) +while [ $count -gt 0 ] +do + sleep 0.1 + count=$((count-1)) if tail -1 sigusr2.out | grep "^EOF" >/dev/null; then expired= break; fi -done +done if [ -z "$expired" ] then