Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(bootstrap): qrencode url
Browse files Browse the repository at this point in the history
Updated qrencode url to https and added error checking if the cert gets in the way.
  • Loading branch information
AliceGrey committed Jun 15, 2017
1 parent 23ed1a3 commit f90da3d
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions windows/bootstrap.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ if [ -d $QTOX_DIR/libs ]; then
if [ "$yn" == "a" ]; then
rm -rf $QTOX_DIR/libs
elif [ "$yn" == "n" ]; then
exit -1
exit 1
elif [ "$yn" != "m" ]; then
exit -1
exit 1
fi
fi

Expand All @@ -31,7 +31,22 @@ fi

## qrencode
if [ ! -f "qrencode-3.4.4.tar.gz" ]; then
wget http://fukuchi.org/works/qrencode/qrencode-3.4.4.tar.gz
wget https://fukuchi.org/works/qrencode/qrencode-3.4.4.tar.gz
fi

if [ ! -f "qrencode-3.4.4.tar.gz" ]; then
echo "Warning: Failed to download libqrencode."
echo "Warning: This is usually due to https certificate issues."
echo
echo "Would you like to continue without verifying the certificate?"
read -p "(yes/No) y/N: " input
input=$(echo $input | tr "[:upper:]" "[:lower:]")
if [ "${input%es}" == y ]; then
wget --no-check-certificate https://fukuchi.org/works/qrencode/qrencode-3.4.4.tar.gz
else
echo "Error: Could not download libqrencode."
exit 1
fi
fi

if [ ! -d "$QTOX_DIR/libs/qrencode-3.4.4" ]; then
Expand Down

0 comments on commit f90da3d

Please sign in to comment.