mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-02 19:05:32 +00:00
Fix the error handling of command line argument checking
This commit is contained in:
@ -6,8 +6,11 @@
|
||||
|
||||
# xCAT-genesis-base-x86_64-2.13.10-snap201801090246.noarch.rpm
|
||||
RPM_PACKAGE="$1"
|
||||
[ -n "${RPM_PACKAGE}" ] ||
|
||||
echo "Usage: ${0##*/} /path/to/xCAT-genesis-base.rpm" && exit 0
|
||||
if [ -z "${RPM_PACKAGE}" ]
|
||||
then
|
||||
echo "Usage: ${0##*/} /path/to/xCAT-genesis-base.rpm"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
|
Reference in New Issue
Block a user