Skip to content
Snippets Groups Projects
Commit 4943ef3e authored by jurgenhaas's avatar jurgenhaas
Browse files

#13 Instruct curl to follow redirects

parent c76951b0
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ function selfUpdate {
if [[ -n "$WGET" ]]; then
sudo wget -O ${DEST} ${NEWSCRIPT} > /dev/null 2>&1
elif [[ -n "$CURL" ]]; then
sudo curl -o ${DEST} ${NEWSCRIPT} > /dev/null 2>&1
sudo curl -L -o ${DEST} ${NEWSCRIPT} > /dev/null 2>&1
else
echo "Could't find wget or curl to perform the update!"
exit 1
......
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