Commit 5d883bf9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

use LISTRPMARGS (unused options) instead LISTARGS

parent 3f4ebe4a
...@@ -173,19 +173,19 @@ function print_error() ...@@ -173,19 +173,19 @@ function print_error()
parse_cmd_pre "$@" parse_cmd_pre "$@"
mygetopts $LISTARGS mygetopts $LISTARGS
test -z "$VERBOSE" || echo "'$LISTNAMES' @ '$LISTARGS'" test -z "$VERBOSE" || echo "'$LISTNAMES' @ '$LISTRPMARGS'"
if [ -n "$LISTARGS" ] ; then if [ -n "$LISTRPMARGS" ] ; then
if [ -z "${LISTARGS/*spec/}" ] ; then if [ -z "${LISTRPMARGS/*spec/}" ] ; then
fatal "run with incorrect filename $LISTARGS" fatal "run with incorrect filename $LISTRPMARGS"
fi fi
if [ ! -f "$LISTNAMES" ] ; then if [ ! -f "$LISTNAMES" ] ; then
fatal "set version permitted only for one file" fatal "set version permitted only for one file"
fi fi
if [ "${LISTARGS/ /}" != "$LISTARGS" ] ; then if [ "${LISTRPMARGS/ /}" != "$LISTRPMARGS" ] ; then
fatal "you run rpmgs with more than one version" fatal "you run rpmgs with more than one version"
fi fi
GSSETVERSION=$LISTARGS GSSETVERSION=$LISTRPMARGS
fi fi
test -z "$LISTNAMES" && print_error test -z "$LISTNAMES" && print_error
......
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