File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
backends/qualcomm/scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ source "${SCRIPT_DIR}/qnn_config.sh"
9
9
# Function to install Android NDK (only if not already set)
10
10
setup_android_ndk () {
11
11
# Check if ANDROID_NDK_ROOT is already set and valid
12
- if [ -n " ${ANDROID_NDK_ROOT} " ] && [ -d " ${ANDROID_NDK_ROOT} " ]; then
12
+ if [ -n " ${ANDROID_NDK_ROOT:- } " ] && [ -d " ${ANDROID_NDK_ROOT} " ]; then
13
13
echo " Android NDK already set to ${ANDROID_NDK_ROOT} - skipping installation"
14
14
return
15
15
fi
@@ -41,7 +41,7 @@ verify_pkg_installed() {
41
41
42
42
install_qnn () {
43
43
# Check if QNN_SDK_ROOT is already set and valid
44
- if [ -n " ${QNN_SDK_ROOT} " ] && [ -d " ${QNN_SDK_ROOT} " ]; then
44
+ if [ -n " ${QNN_SDK_ROOT:- } " ] && [ -d " ${QNN_SDK_ROOT} " ]; then
45
45
echo " QNN SDK already set to ${QNN_SDK_ROOT} - skipping installation"
46
46
return
47
47
fi
You can’t perform that action at this time.
0 commit comments