From cc59be0834e467d346eccea57b21113ef3127b69 Mon Sep 17 00:00:00 2001 From: 2ro <17595647+2ro@users.noreply.github.com> Date: Mon, 15 Jun 2026 20:20:15 -0400 Subject: [PATCH] android.sh: fix flavor default ([[ $flavor ]], not literal 'flavor') The empty-flavor test compared the literal string 'flavor', so a no-flavor invocation left the APK output path as apk//debug/app--debug.apk and the rename failed. Default to 'local' correctly. --- scripts/android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/android.sh b/scripts/android.sh index cb545ef..5533e2c 100755 --- a/scripts/android.sh +++ b/scripts/android.sh @@ -61,7 +61,7 @@ function build_lib() { ### Build application function build_apk() { flavor=$3 - [[ flavor == "" ]] && flavor="local" + [[ -z "$flavor" ]] && flavor="local" cd android || exit 1 ./gradlew clean # Build signed apk if keystore exists