From 72ba7d56e5bbb28fae4510fd3ab17bf92fd37d4c Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Sun, 29 Dec 2024 00:01:55 +0530 Subject: [PATCH] fix: inverted condition in prebuild --- scripts/prebuild.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/prebuild.sh b/scripts/prebuild.sh index 2dd9a095..3c25587e 100755 --- a/scripts/prebuild.sh +++ b/scripts/prebuild.sh @@ -41,13 +41,13 @@ if [[ "$paths_source" != "true" ]]; then exit 1 fi -if [ -d "$ANDROID_HOME" ]; then - echo "\$ANDROID_HOME does exist." +if [ ! -d "$ANDROID_HOME" ]; then + echo "\$ANDROID_HOME does not exist." exit 1 fi -if [ -d "$ANDROID_NDK" ]; then - echo "\$ANDROID_NDK does exist." +if [ ! -d "$ANDROID_NDK" ]; then + echo "\$ANDROID_NDK does not exist." exit 1 fi