From 1c367bb66a7ad5f8aedf3b181568e1cbadd9ce4a Mon Sep 17 00:00:00 2001 From: The_Spider Date: Sun, 30 Aug 2020 11:13:59 -0500 Subject: [PATCH] escapes more variables. --- build-deluge.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-deluge.jenkins b/build-deluge.jenkins index 2e2b06c..24ed6c9 100644 --- a/build-deluge.jenkins +++ b/build-deluge.jenkins @@ -52,14 +52,14 @@ if [[ -z "\${DDNS_HOST}" ]] || [[ "\${DDNS_HOST}" == "" ]]; then fi printf '%s\n' "Detecting public IP" -DIP=$(dig @ns1.google.com TXT o-o.myaddr.l.google.com +short | sed -e 's/"//g') +DIP=\$(dig @ns1.google.com TXT o-o.myaddr.l.google.com +short | sed -e 's/"//g') if [[ -z "\${DIP+x}" ]] || [[ "\${DIP}" == "" ]]; then printf '%s\n' "Unable to detect real-world IP." exit 100 fi printf '%s\n' "Getting known IP" -KIP=$(dig \${DDNS_HOST} +short) +KIP=\$(dig \${DDNS_HOST} +short) if [[ -z "\${KIP+x}" ]] || [[ "\${KIP}" == "" ]]; then printf '%s\n' "Unable to get known IP." exit 100