Skip to content

Commit

Permalink
replace exit with return
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Oct 29, 2019
1 parent 09d4bc3 commit da486a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/download/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand All @@ -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}
Expand Down Expand Up @@ -86,7 +86,7 @@ function download() {

if [[ $# -eq 0 ]]; then
downloadHelp
exit 1
return
fi

local ACTIONS_COUNT=$#
Expand Down

0 comments on commit da486a2

Please sign in to comment.