add -L to curl

This commit is contained in:
AJ ONeal 2017-11-02 04:19:58 +00:00
parent 2adfec1fd6
commit 4090196e84
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ INSTALL_FILE="node.setup.bash"
if [ ! -e "/tmp/${INSTALL_FILE}" ]
then
if [ -n "$(which curl)" ]; then
curl --silent "${BASE_URL}/${INSTALL_FILE_REMOTE}" \
curl --silent -L "${BASE_URL}/${INSTALL_FILE_REMOTE}" \
-o "/tmp/${INSTALL_FILE}" || echo 'error setup script: '"${BASE_URL}/${INSTALL_FILE_REMOTE}"
elif [ -n "$(which wget)" ]; then
wget --quiet "${BASE_URL}/${INSTALL_FILE_REMOTE}" \