Skip to content
Snippets Groups Projects
Unverified Commit e64ff3c1 authored by Max Adamo's avatar Max Adamo
Browse files

fix exit status

parent 4df2515d
Branches
Tags v1.2.5
No related merge requests found
Pipeline #74674 passed
......@@ -202,14 +202,17 @@ if [[ -n $UPDATE ]]; then
UPDATE_STATUS=$?
fi
if [ $UPDATE_STATUS == "skip" ]; then
EXIT_STATUS=0
echo -e "\n$0 is already up to date\n"
elif [ $UPDATE_STATUS -eq 0 ]; then
EXIT_STATUS=0
echo -e "\n$0 updated successfully\n"
else
EXIT_STATUS=$UPDATE_STATUS
echo -e "\nfailed to update $0"
echo -e "Please download the script manually from this URL: ${SCRIPT_URL}\n"
fi
clean_up $UPDATE_STATUS
clean_up $EXIT_STATUS
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment