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