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

Change-Id: Ic1b532927fdbb5b9dfe6b2dd144ffad1ee2e6b16


[ROCm/hip commit: 2bb7ad5eba]
This commit is contained in:
Maneesh Gupta
2016-09-06 15:23:56 +05:30
parent 7d2c2f2bf3
commit 8a3266600e
+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}