summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2013-05-12 09:46:28 +0000
committerepoch <epoch@hacking.allowed.org>2013-05-15 23:32:44 -0500
commitb09ebf67a7b0036f2f0f539ec6ee95d02d4c0cba (patch)
treeca6dc0f99a43728183000ec5d4514f8fc1fcbc8e /scripts
parent69cd288ce531f9dec2f59102f8e4f4d8288077a3 (diff)
downloadresdb-b09ebf67a7b0036f2f0f539ec6ee95d02d4c0cba.tar.gz
resdb-b09ebf67a7b0036f2f0f539ec6ee95d02d4c0cba.zip
epoch added his anonet ipv6 range to the db. not sure what I changed in add_dom... that's odd.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/add_dom2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/add_dom b/scripts/add_dom
index 89626f3..013ce18 100755
--- a/scripts/add_dom
+++ b/scripts/add_dom
@@ -4,7 +4,7 @@ if [ x"$2" = x ]; then
echo "Usage: $0 <dom> <owner> [<ns[/nsip]>...]" >&2; exit 255
fi
-dir=db/dom/"$(echo "$1" | tr . '\n' | tac | tr '\n' / | head -c -1)"
+dir=db/dom/"$(echo "$1" | tr . '\n' | tac | tr '\n' / | ./scripts/head_-c_-1)"
mkdir "$dir" || exit 1
echo "$2" > "$dir/owner"
mkdir "$dir/ns" || exit 1