mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
[CB-3626] fix to start-emulator: if no id is provided, should start the first emulator
This commit is contained in:
parent
5cff144a22
commit
e86d811fc0
@ -82,10 +82,10 @@ function start_emulator {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# start first emulator
|
# start first emulator
|
||||||
emulator_list=($emulator_images)
|
read -ra emulator_list <<< "$emulator_images"
|
||||||
if [[ ${#emulator_list[@]} > 0 ]] ; then
|
if [[ ${#emulator_list[@]} > 0 ]] ; then
|
||||||
#xterm -e emulator -avd ${emulator_list[0]} &
|
#xterm -e emulator -avd ${emulator_list[0]} &
|
||||||
emulator -avd ${emulator_list[0]/[^a-zA-Z0-9._]/} 1> /dev/null 2>&1 &
|
emulator -avd ${emulator_list[0]/[^a-zA-Z0-9._-]/} 1> /dev/null 2>&1 &
|
||||||
else
|
else
|
||||||
echo "No emulators found, if you would like to create an emulator follow the instructions"
|
echo "No emulators found, if you would like to create an emulator follow the instructions"
|
||||||
echo " provided here : http://developer.android.com/tools/devices/index.html"
|
echo " provided here : http://developer.android.com/tools/devices/index.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user