Skip to content

Commit

Permalink
Merge pull request #8 from twocolors/main
Browse files Browse the repository at this point in the history
fix: check when use 'set -e'
  • Loading branch information
HQarroum authored May 2, 2024
2 parents 315d9f5 + a64a800 commit c664219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/start-emulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ socat tcp-listen:"$ADB_PORT",bind="$LOCAL_IP",fork tcp:127.0.0.1:"$ADB_PORT" &
export USER=root

# Creating the Android Virtual Emulator.
TEST_AVD=$(avdmanager list avd | grep "android")
if [ -n "$TEST_AVD" ]; then
TEST_AVD=$(avdmanager list avd | grep -c "android.avd" || true)
if [ "$TEST_AVD" == "1" ]; then
echo "Use the exists Android Virtual Emulator ..."
else
echo "Creating the Android Virtual Emulator ..."
Expand Down

0 comments on commit c664219

Please sign in to comment.