You need to sign in or sign up before continuing.
Commit 159245a0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix arg checking

parent 1771a223
......@@ -162,34 +162,6 @@ fi
test -z "$1" && fatal "Please run with spec/package name"
# Check concrete system
# two params: system, package
if [ -n "$2" ] ; then
NAME=$2
load_systems_list
IDX=`get_system_idx "$1"`
if [ -n "$IDX" ] ; then
check_system $IDX
else
#fatal "Unknown system '$1', use rpmgp -s for get list"
NAME=
fi
exit 0
else
NAME=$1
fi
# Check all systems
if [ -n "$ALLSYSTEM" ] ; then
load_systems_list
# search throw all systems
for ((i=0; i < ${#SYSNAME[*]}; i++)) ; do
echo
check_system $i
done
exit 0
fi
#
# , ( ?),
# -
......@@ -239,6 +211,35 @@ if [ "$1" = "-c" ] ; then
exit 0
fi
# Check concrete system
# two params: system, package
if [ -n "$2" ] ; then
NAME=$2
load_systems_list
IDX=`get_system_idx "$1"`
if [ -n "$IDX" ] ; then
check_system $IDX
else
#fatal "Unknown system '$1', use rpmgp -s for get list"
NAME=
fi
exit 0
else
NAME=$1
fi
# Check all systems
if [ -n "$ALLSYSTEM" ] ; then
load_systems_list
# search throw all systems
for ((i=0; i < ${#SYSNAME[*]}; i++)) ; do
echo
check_system $i
done
exit 0
fi
echo
echo "########################################"
if [ -z "${1/*src.rpm/}" ]
......
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