From 51b550195c98d94a633b456bd336a321e932b459 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 19 Sep 2018 15:49:45 -0600 Subject: [PATCH] scriptHelp exits by passing error code if provided --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 5cebbe4..771ad84 100755 --- a/backup.sh +++ b/backup.sh @@ -18,8 +18,8 @@ stamp="[`date +%Y-%m-%d` `date +%H:%M:%S`]" ### scriptHelp -- display usage information for this script function scriptHelp { echo "In the future, I will be something helpful!" - # do NOT use quit function, just exit with error code - exit 98 + # exit with error code IF passed + quit $1 } ### quit -- exit the script after logging any errors, warnings, etc. and