diff options
author | Nick <nick@somerandomnick.ano> | 2010-04-18 05:24:10 +0000 |
---|---|---|
committer | Nick <nick@somerandomnick.ano> | 2010-04-18 05:24:10 +0000 |
commit | 179b6140a80a79ac887bc2abeefcbd3767a9d487 (patch) | |
tree | a050a7ab8a2f81d1291a49abf77793f31eb72644 /scripts | |
parent | aa48ba0ce0774dff66111e2bda50e4e8c2aaf4e0 (diff) | |
download | resdb-179b6140a80a79ac887bc2abeefcbd3767a9d487.tar.gz resdb-179b6140a80a79ac887bc2abeefcbd3767a9d487.zip |
made scripts/add_as a bit less user-unfriendly
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/add_as | 5 |
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 |