Merge pull request #8 from twocolors/main

fix: check when use 'set -e'
This commit is contained in:
Halim Qarroum authored and GitHub committed 2024-05-02 17:12:26 +02:00
commit c664219603
1 file changed
+2 -2
+2 -2
View File
@@ -25,8 +25,8 @@ socat tcp-listen:"$ADB_PORT",bind="$LOCAL_IP",fork tcp:127.0.0.1:"$ADB_PORT" &
export USER=root export USER=root
# Creating the Android Virtual Emulator. # Creating the Android Virtual Emulator.
TEST_AVD=$(avdmanager list avd | grep "android") TEST_AVD=$(avdmanager list avd | grep -c "android.avd" || true)
if [ -n "$TEST_AVD" ]; then if [ "$TEST_AVD" == "1" ]; then
echo "Use the exists Android Virtual Emulator ..." echo "Use the exists Android Virtual Emulator ..."
else else
echo "Creating the Android Virtual Emulator ..." echo "Creating the Android Virtual Emulator ..."