From bc0a88718052bb5f65cf6b9678a56eaa90e554bc Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Thu, 28 Dec 2023 08:17:23 +0100 Subject: [PATCH] fix --- scripts/_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 1afcf61..62e6cb3 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -81,10 +81,10 @@ process_ips(){ if is_public_ip "$ip" && [ "$open_port_53" == "false" ] ; then exit 1 else - after_first_pass=true - if [ $after_first_pass = true ]; then + if [ "${after_first_pass:-}" = true ]; then processed_ips+=$(printf "$processed_ips\n%s" "/n") fi + after_first_pass=true if [[ "${is_install:-}" = true ]]; then # to get a dash before each IP processed_ips+=$(printf "$processed_ips\n%s" "- $ip")