Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
DuckDNS: Add support for typing the full domain. (#103)
Browse files Browse the repository at this point in the history
* Add support for typing the full domain.

* Trimming domain name if http is pressent.
  • Loading branch information
ludeeus authored and Landrash committed Feb 11, 2018
1 parent 37cda17 commit cc00528
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package/opt/hassbian/suites/duckdns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ read domain
if [ ! "$domain" ]; then
exit
fi
if [[ $domain = *"duckdns"* ]]; then
domain=$(echo "$domain" | cut -d\. -f1)
fi
if [[ $domain = *"//"* ]]; then
domain=$(echo "$domain" | cut -d\/ -f3)
fi


echo -n "Token: "
read token
Expand Down

0 comments on commit cc00528

Please sign in to comment.