diff --git a/android/scripts/update-lockfile.sh b/android/scripts/update-lockfile.sh index a5ad50eef04f..126060bad5e9 100755 --- a/android/scripts/update-lockfile.sh +++ b/android/scripts/update-lockfile.sh @@ -5,7 +5,7 @@ set -eu SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$SCRIPT_DIR" -GRADLE_TASKS="assemble compileDebugUnitTestKotlin assembleAndroidTest lint" +GRADLE_TASKS=("assemble" "compileDebugUnitTestKotlin" "assembleAndroidTest" "lint") TEMP_GRADLE_HOME_DIR=$(mktemp -d) TEMP_GRADLE_PROJECT_CACHE_DIR=$(mktemp -d) @@ -24,4 +24,4 @@ echo "Removing old components..." sed -i '//,/<\/components>/d' ../gradle/verification-metadata.xml echo "Generating new components..." -../gradlew -q -p .. -g "$TEMP_GRADLE_HOME_DIR" --project-cache-dir "$TEMP_GRADLE_PROJECT_CACHE_DIR" -M sha256 "$GRADLE_TASKS" +../gradlew -q -p .. -g "$TEMP_GRADLE_HOME_DIR" --project-cache-dir "$TEMP_GRADLE_PROJECT_CACHE_DIR" -M sha256 "${GRADLE_TASKS[@]}"