Skip to content

Commit caaf463

Browse files
quote adb output in emulator startup script to resolve Semgrep error
1 parent 8b2e46c commit caaf463

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/install-start-emulator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ adb shell input keyevent 82 &
5757

5858
#block until emulator is ready to run tests
5959
echo "Waiting for Emulator to start"
60-
until [[ ${bootanim} =~ "stopped" ]]; do
60+
until [[ $bootanim =~ "stopped" ]]; do
6161
echo "run: adb reconnect offline"
6262
adb reconnect offline
6363
adb devices
64-
bootanim=$(adb -e shell getprop init.svc.bootanim 2>&1 &)
64+
bootanim="$(adb -e shell getprop init.svc.bootanim 2>&1)"
6565
echo "Waiting for emulator, status is: ${bootanim}"
6666
sleep 1
6767
echo

0 commit comments

Comments
 (0)