Shellcheck found some false positives in the printf hints.
This commit is contained in:
parent
4aa03ad93d
commit
8af878004d
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
echo "certbot txt record: $CERTBOT_VALIDATION"
|
echo "certbot txt record: $CERTBOT_VALIDATION"
|
||||||
|
|
||||||
baseurl='https://www.duckdns.org/update?domains=%s&token=%s&txt=%s'
|
baseurl='https://www.duckdns.org/update?domains=%s&token=%s&txt=%s'
|
||||||
result="$(printf 'url=%s\n' "$baseurl" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" "$CERTBOT_VALIDATION" | curl -K -)"
|
result="$(printf "url=$baseurl\n" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" "$CERTBOT_VALIDATION" | curl -K -)"
|
||||||
|
|
||||||
# give some time for the record to update
|
# give some time for the record to update
|
||||||
echo "waiting for txt record"
|
echo "waiting for txt record"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
baseurl='https://www.duckdns.org/update?domains=%s&token=%s&txt=&clear=True'
|
baseurl='https://www.duckdns.org/update?domains=%s&token=%s&txt=&clear=True'
|
||||||
test "$(printf "url=%s\n" "$baseurl" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" | curl -K -)" = 'OK'
|
test "$(printf "url=$baseurl\n" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" | curl -K -)" = 'OK'
|
||||||
|
|
2
duckdns
2
duckdns
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
logfile=/var/log/duckdns.log
|
logfile=/var/log/duckdns.log
|
||||||
baseurl='https://www.duckdns.org/update?domains=%s&token=%s'
|
baseurl='https://www.duckdns.org/update?domains=%s&token=%s'
|
||||||
printf 'url=%s\n' "$baseurl" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" | curl -o "$logfile" -K -
|
printf "url=$baseurl\n" "$DUCKDNS_DOMAIN" "$DUCKDNS_TOKEN" | curl -o "$logfile" -K -
|
||||||
|
|
Loading…
Reference in a new issue