Updated the run command to have a custom exit code
This commit is contained in:
parent
e53eb5fd4d
commit
afccf3a5c5
|
@ -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;
|
Loading…
Reference in New Issue