Skip to content

Commit c9c96ba

Browse files
Copilotkirklandsign
andcommitted
Add proper quoting to gradle arguments
Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com>
1 parent c6a2e5c commit c9c96ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

llm/android/LlamaDemo/scripts/run-ci-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ adb logcat > /tmp/logcat.txt &
9292
LOGCAT_PID=$!
9393

9494
echo "=== Starting Gradle ==="
95-
GRADLE_ARGS="-PskipModelDownload=true -PmodelPreset=$MODEL_PRESET"
95+
GRADLE_ARGS="-PskipModelDownload=true -PmodelPreset=\"$MODEL_PRESET\""
9696
if [ "$USE_LOCAL_AAR" = "true" ]; then
9797
GRADLE_ARGS="$GRADLE_ARGS -PuseLocalAar=true"
9898
fi
99-
./gradlew connectedCheck $GRADLE_ARGS
99+
eval ./gradlew connectedCheck "$GRADLE_ARGS"
100100
TEST_EXIT_CODE=$?
101101

102102
echo "=== Model directory after Gradle ==="

0 commit comments

Comments
 (0)