ddns-scripts-cloudflare: fix shell conditional

Signed-off-by: Glen Huang <heyhgl@gmail.com>
This commit is contained in:
Glen Huang 2022-01-15 22:33:07 +08:00
parent 78ef7d7379
commit aed4dbf349

View file

@ -134,7 +134,7 @@ else
fi fi
__PRGBASE="$__PRGBASE --header 'Content-Type: application/json' " __PRGBASE="$__PRGBASE --header 'Content-Type: application/json' "
if [ -n "$zone_id"]; then if [ -n "$zone_id" ]; then
__ZONEID="$zone_id" __ZONEID="$zone_id"
else else
# read zone id for registered domain.TLD # read zone id for registered domain.TLD