Shellcheck found some false positives in the printf hints.

This commit is contained in:
redxef 2024-01-16 18:12:37 +01:00
parent 4aa03ad93d
commit 8af878004d
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
echo "certbot txt record: $CERTBOT_VALIDATION"
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
echo "waiting for txt record"

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh
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'

View file

@ -2,4 +2,4 @@
logfile=/var/log/duckdns.log
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 -