Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #27 from kenmazaika/master

Follow 302 Redirects with Curl
  • Loading branch information...
commit f27eabe8fba28ed373aaf55866c8abeb33f6db01 2 parents 7141f54 + 241b7cc
@masterkain authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  install_im.sh
View
2  install_im.sh
@@ -31,7 +31,7 @@ function try_download () {
file_name=`echo "$1" | ruby -ruri -e 'puts File.basename(gets.to_s.chomp)'` # I cheated.
rm -f $file_name # Cleanup in case of retry.
echo "Downloading $1"
- curl --fail --progress-bar -O --url $1
+ curl --fail --progress-bar -O -L --url $1
result=$? # Store the code of the last action, should be 0 for a successfull download.
file_size=`ls -l "$file_name" | awk '{print $5}'`
# We check for normal errors, otherwise check the file size.
Please sign in to comment.
Something went wrong with that request. Please try again.