From afccf3a5c5f2ec4cf64eba3175dfd568c075c824 Mon Sep 17 00:00:00 2001 From: Ian Wijma Date: Sun, 19 Nov 2023 13:31:53 +1100 Subject: [PATCH] Updated the run command to have a custom exit code --- bin/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/run.sh b/bin/run.sh index 664e3c4..3e94dc3 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -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; \ No newline at end of file +exit $EXIT; \ No newline at end of file