index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | ddns-update | 6 |
diff --git a/ddns-update b/ddns-update index 7bfabf9..054521c 100755 --- a/ddns-update +++ b/ddns-update @@ -11,12 +11,8 @@ set -e if [ $# -eq 1 ]; then if [ "${1%.*}" != "$1" ]; then ipver='A' - lft='' - rt='' elif [ "${1%:*}" != "$1" ]; then ipver='AAAA' - lft='[' - rt=']' else exit fi @@ -26,7 +22,7 @@ if [ $# -eq 1 ]; then -L \ -o /dev/null \ --connect-timeout 10 \ - --resolve "pool.mirror.archlinux32.org:80:${lft}$1${rt}" \ + --resolve "pool.mirror.archlinux32.org:80:$1" \ -s 'http://pool.mirror.archlinux32.org/i686/')" != '200' ]; then exit fi |