Updated the run command to have a custom exit code

This commit is contained in:
Ian Wijma 2023-11-19 13:31:53 +11:00
parent e53eb5fd4d
commit afccf3a5c5
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
SLEEP=${1:-'10'}
EXIT=${2:-'0'}
echo "Sleeping for $SLEEP seconds...";
@ -8,4 +9,4 @@ sleep $SLEEP;
echo "Waking up!";
exit 1;
exit $EXIT;