1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(bootstrap): qrencode url

Updated qrencode url to https and added error checking if the cert gets in the way.
This commit is contained in:
Alice Weigt 2017-06-12 19:24:57 -07:00
parent 23ed1a3966
commit f90da3d07a

21
windows/bootstrap.sh Normal file → Executable file
View File

@ -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
@ -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