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

fix exit status

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