shellcheck

This commit is contained in:
Talon 2022-03-08 00:42:06 -07:00
parent cce6dde4b5
commit ace83edacb

View file

@ -25,7 +25,7 @@ GDDNS_EXTERNAL_IP="${GDDNS_EXTERNAL_IP:-"https://ipv4.icanhazip.com"}"
###############################################################################
# Discover external IP (via icanhazip.com by default)
if ! ip="$(curl --fail --silent $GDDNS_EXTERNAL_IP)"; then
if ! ip="$(curl --fail --silent "$GDDNS_EXTERNAL_IP")"; then
printf "error: failed to get external IP address\n"
exit 1
fi