hipgenisa.sh: exit if no command-line args specified
Change-Id: Ic1b532927fdbb5b9dfe6b2dd144ffad1ee2e6b16
[ROCm/hip commit: 2bb7ad5eba]
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user