diff options
author | cathugger <cathugger@cock.li> | 2017-03-10 03:30:16 +0000 |
---|---|---|
committer | cathugger <cathugger@cock.li> | 2017-03-10 03:30:16 +0000 |
commit | 7e5469a0dee1fbaf661720fc330d47d992f1d8fe (patch) | |
tree | d5f8a16a1ae8e390103e35a77d975e3157115236 /scripts/add_ip | |
parent | 9ec38bd2c56d112e49360c4f8be92900c998205c (diff) | |
download | resdb-7e5469a0dee1fbaf661720fc330d47d992f1d8fe.tar.gz resdb-7e5469a0dee1fbaf661720fc330d47d992f1d8fe.zip |
add muh nameserver, some script tweaks
Diffstat (limited to 'scripts/add_ip')
-rwxr-xr-x | scripts/add_ip | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/add_ip b/scripts/add_ip index 0d7d87c..e582a49 100755 --- a/scripts/add_ip +++ b/scripts/add_ip @@ -5,7 +5,7 @@ if [ x"$2" = x ]; then fi cidr="$1" -hex="$(./scripts/cidr2hex "$cidr")" +hex=$($(dirname "$0")/cidr2hex "$cidr") || exit 1 dir=db/ip/"$hex" if [ -e "$dir" ]; then echo "Refusing to clobber existing record" >&2; exit 1 |