From 7e5469a0dee1fbaf661720fc330d47d992f1d8fe Mon Sep 17 00:00:00 2001 From: cathugger Date: Fri, 10 Mar 2017 03:30:16 +0000 Subject: add muh nameserver, some script tweaks --- scripts/add_ip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/add_ip') 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 -- cgit v1.2.3