fix(avd): fix starting n-th AVD by removing preceding number

This commit is contained in:
Andrzej Zabost 2021-08-10 19:42:52 +02:00
parent 6579eb94dd
commit 1cb99a21ac

View file

@ -65,7 +65,8 @@ function avd() {
return return
fi fi
avd_name=$(avds | head -"$avd_number" | tail -1) # Print only the n-th AVD and remove the number prefix added by 'grep -n'
avd_name=$(avds | head -"$avd_number" | tail -1 | sed -E 's/^[0-9]+://')
echo "Starting emulator: $avd_name" echo "Starting emulator: $avd_name"
emulator_path=$(find_emulator) emulator_path=$(find_emulator)