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

Change-Id: Ic1b532927fdbb5b9dfe6b2dd144ffad1ee2e6b16
此提交包含在:
Maneesh Gupta committed 2016-09-06 15:23:56 +05:30
1 父節點 23068b4ac5
當前提交 2bb7ad5eba
1 file changed
+2 -3
+2 -3
查看文件
@@ -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}