diff --git a/bin/test.sh b/bin/test.sh index bde7751..9d24533 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -1,18 +1,18 @@ #!/bin/bash -SLEEP=${1:-'10'} -EXIT=${2:-'0'} +SLEEP=${1:-10} +EXIT=${2:-0} echo "Sleeping for $SLEEP seconds..."; -sleep $SLEEP; +sleep "$SLEEP"; echo "Waking up!"; -if [ $EXIT > 0 ]; then +if [ "$EXIT" -gt "0" ]; then >&2 echo "Exiting with error code $EXIT"; else echo "Exiting with error code $EXIT"; fi -exit $EXIT; \ No newline at end of file +exit "$EXIT"; \ No newline at end of file