Skip to content
Snippets Groups Projects
Unverified Commit 92a3fd3e authored by Ian Baum's avatar Ian Baum
Browse files

Fix my fix

* Booleans aren't not hard
* Catch exit code of wget, so we can then exit with the same code
parent 930d80eb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,7 +10,8 @@ else
wget --quiet --header "PRIVATE-TOKEN: ${TRIGGER_PRIVATE_TOKEN}" ${DOWNLOAD_URL} -O /tmp/gitlab.deb
fi
 
if [ $? -eq 0 ]; then
results=$?
if [ ${results} -ne 0 ]; then
>&2 echo "There was an error downloading ${DOWNLOAD_URL}. Please check the output for more information"
exit 1
exit ${results}
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment