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 #!/bin/bash
SLEEP=${1:-'10'} SLEEP=${1:-10}
EXIT=${2:-'0'} EXIT=${2:-0}
echo "Sleeping for $SLEEP seconds..."; echo "Sleeping for $SLEEP seconds...";
sleep $SLEEP; sleep "$SLEEP";
echo "Waking up!"; echo "Waking up!";
if [ $EXIT > 0 ]; then if [ "$EXIT" -gt "0" ]; then
>&2 echo "Exiting with error code $EXIT"; >&2 echo "Exiting with error code $EXIT";
else else
echo "Exiting with error code $EXIT"; echo "Exiting with error code $EXIT";
fi fi
exit $EXIT; exit "$EXIT";