From da486a278d9ac81dbf156b1c401989b9c0de821c Mon Sep 17 00:00:00 2001 From: wildone Date: Tue, 29 Oct 2019 20:40:48 +1100 Subject: [PATCH] replace exit with return --- scripts/download/download.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/download/download.sh b/scripts/download/download.sh index 3a99cfa..6aa68ea 100755 --- a/scripts/download/download.sh +++ b/scripts/download/download.sh @@ -33,7 +33,7 @@ function doDownload() { if [[ ! -f "${MODULE_SCRIPT}" ]]; then echo "module: error, could not find module script" - exit 0 + return fi FILTER=$(echo $MODULE | sed -e 's/.*:\(.*\)/\1/') @@ -44,7 +44,7 @@ function doDownload() { echo ${FILEURL_FILTER_URL} if [[ "${FILEURL_FILTER_URL}" == "" ]]; then echo "module: error, could not get url from module" - exit 0 + return fi FILENAME=$(basename "${FILEURL_FILTER_URL}") FILEURL=${FILEURL_FILTER_URL} @@ -86,7 +86,7 @@ function download() { if [[ $# -eq 0 ]]; then downloadHelp - exit 1 + return fi local ACTIONS_COUNT=$#