summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2010-04-18 05:24:10 +0000
committerNick <nick@somerandomnick.ano>2010-04-18 05:24:10 +0000
commit179b6140a80a79ac887bc2abeefcbd3767a9d487 (patch)
treea050a7ab8a2f81d1291a49abf77793f31eb72644 /scripts
parentaa48ba0ce0774dff66111e2bda50e4e8c2aaf4e0 (diff)
downloadresdb-179b6140a80a79ac887bc2abeefcbd3767a9d487.tar.gz
resdb-179b6140a80a79ac887bc2abeefcbd3767a9d487.zip
made scripts/add_as a bit less user-unfriendly
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/add_as5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/add_as b/scripts/add_as
index 5650dcc..8932700 100755
--- a/scripts/add_as
+++ b/scripts/add_as
@@ -1,3 +1,8 @@
#!/bin/sh
+
+if [ x"$2" = x ]; then
+ echo "Usage: $0 <ASN> <owner>" >&2; exit 255
+fi
+
mkdir -p db/as/$1 || exit 1
echo $2 > db/as/$1/owner