mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Fix the error handling of command line argument checking
This commit is contained in:
parent
03d6c72622
commit
858270e666
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user