hipgenisa.sh: exit if no command-line args specified

Change-Id: Ic1b532927fdbb5b9dfe6b2dd144ffad1ee2e6b16
This commit is contained in:
Maneesh Gupta
2016-09-06 15:23:56 +05:30
parent 23068b4ac5
commit 2bb7ad5eba
+2 -3
View File
@@ -1,8 +1,7 @@
#!/bin/bash
if [ $1 = " " ]
then
exit
if [ $# = 0 ]; then
>&2 echo "$(basename $0): Invalid number of arguments" && exit 1
fi
: ${ROCM_PATH:=/opt/rocm}