Skip to content

Commit

Permalink
Make curl set an error code if fails
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Jun 11, 2017
1 parent e326d4f commit e8d17f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ printf "found Perl at $perl\n" >> $log
printf "Checking for HTTP client..." >> $log
while true; do
if [ -x "/usr/bin/curl" ]; then
download="/usr/bin/curl -s -L -O"
download="/usr/bin/curl -f -s -L -O"
break
elif [ -x "/usr/bin/wget" ]; then
download="/usr/bin/wget -nv"
Expand Down

0 comments on commit e8d17f1

Please sign in to comment.