Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Work around old wget problems

  • Loading branch information...
commit 7e3ab83eaa7a0e10f08e74dcdb6c47a67ec80d49 1 parent 1e3b07d
@jordansissel jordansissel authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 fetch.sh
View
4 fetch.sh
@@ -25,6 +25,10 @@ echo "URL: $URL"
# If you need to pass any specific flags to any specific fetcher, set
# WGET_FLAGS, CURL_FLAGS, or GET_FLAGS in your environment accordingly.
if which wget > /dev/null 2>&1 ; then
+ # Check if wget is a shitty version
+ if ! wget -O /dev/null -q https://github.com/ ; then
+ WGET_FLAGS="${WGET_FLAGS} --no-check-certificate"
+ fi
exec wget $WGET_FLAGS -O "$OUTPUT" "$URL"
elif which curl > /dev/null 2>&1 ; then
exec curl $CURL_FLAGS -s -o "$OUTPUT" "$URL"
Please sign in to comment.
Something went wrong with that request. Please try again.