topic/rust #2

Merged
ian merged 6 commits from topic/rust into main 2023-11-20 13:10:23 +00:00
1 changed files with 5 additions and 5 deletions
Showing only changes of commit b0daf0db5f - Show all commits

View File

@ -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;
exit "$EXIT";