diff options
-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 |