Skip to content

Commit 70b4526

Browse files
committed
check on the existance of ANDROID_AVD_HOME before adding one
1 parent e183e34 commit 70b4526

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

emu/templates/launch-emulator.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ fi
239239
# Add qemu specific parameters
240240
var_append LAUNCH_CMD -qemu -append panic=1
241241

242-
export ANDROID_AVD_HOME=/android-home
242+
if [ ! -z "${ANDROID_AVD_HOME}" ]; then
243+
export ANDROID_AVD_HOME=/android-home
244+
fi
243245

244246
# Kick off the emulator
245247
exec $LAUNCH_CMD

0 commit comments

Comments
 (0)