Can't put a function above the lib import duuh

This commit is contained in:
Daniel Hansson 2017-11-20 19:29:59 +01:00 committed by GitHub
parent 1d75d98ee2
commit 71de61fd18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,12 @@
sed -i "s|#precedence ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf
# Install curl if not existing
install_if_not curl
if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ]
then
echo "curl OK"
else
apt update && apt install curl -y
fi
# shellcheck disable=2034,2059
true