From 651fa6ff54fdfd43aeaf6251bab780707144849f Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Fri, 17 Jan 2025 17:45:11 +0530 Subject: [PATCH] fix(scripts): use named variable instead of positional --- scripts/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 27e7702c..eb5ed345 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -129,10 +129,9 @@ popd # shellcheck disable=SC2154 pushd "$fenix" -if [[ "$1" == "apk" ]]; then +if [[ "$build_type" == "apk" ]]; then gradle :app:assembleRelease -fi -if [[ "$1" == "bundle" ]]; then +elif [[ "$build_type" == "bundle" ]]; then gradle :app:bundleRelease -Paab fi popd \ No newline at end of file