Skip to content

Commit

Permalink
Prepend 'http:' to download url. Fixes manabutameni#12
Browse files Browse the repository at this point in the history
  • Loading branch information
giodamelio committed Oct 17, 2013
1 parent d9b7416 commit d7cbc6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgur.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function main()
curl_args="-s"
fi
debug "curl $curl_args $image_url > $folder_name/$image_name"
curl "$curl_args" "$image_url" > "$folder_name"/"$image_name" ||
curl "$curl_args" "http:$image_url" > "$folder_name"/"$image_name" ||
debug "failed to download: $image_url \n"

if [[ "$preserve_flag" == "TRUE" ]]
Expand Down

2 comments on commit d7cbc6f

@rsleventhal
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a champ. Thanks for the update!

@giodamelio
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, ran into this a few hours ago, it was an easy fix.

Please sign in to comment.