Commit 7d1a1aed authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmrb: check for extra options

parent 2cb87931
......@@ -30,6 +30,14 @@ SPEC=$1
[ -s "$SPEC" ] || fatal "Can't find spec file. Run $0 --help for help."
VER=$1
case "$2" in
-*)
fatal "No options are supported. See --help."
;;
*)
esac
# need for rpmgs
GSSETRELEASE=$2
test -n "$GSSETRELEASE" || GSSETRELEASE=$(get_txtrelease $SPEC)1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment