File tree Expand file tree Collapse file tree
Docker-Images/DeveloperAndroid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,19 +161,16 @@ RUN mkdir -p /home/coder/Android/Sdk/cmdline-tools && \
161161 "platform-tools" \
162162 "emulator" && \
163163 mv /home/coder/Android/Sdk/emulator/emulator /home/coder/Android/Sdk/emulator/emulator.real && \
164- cat > /home/coder/Android/Sdk/emulator/emulator <<'EOF' && \
165- # !/usr/bin/env bash
166- set -e
167-
168- default_gpu="${ANDROID_EMULATOR_DEFAULT_GPU:-swiftshader}"
169- for arg in "$@" ; do
170- if [ "$arg" = "-gpu" ]; then
171- exec /home/coder/Android/Sdk/emulator/emulator.real "$@"
172- fi
173- done
174-
175- exec /home/coder/Android/Sdk/emulator/emulator.real -gpu "$default_gpu" "$@"
176- EOF
164+ { \
165+ printf '%s\n ' '#!/usr/bin/env bash' 'set -e' '' ; \
166+ printf '%s\n ' 'default_gpu="${ANDROID_EMULATOR_DEFAULT_GPU:-swiftshader}"' ; \
167+ printf '%s\n ' 'for arg in "$@"; do' ; \
168+ printf '%s\n ' ' if [ "$arg" = "-gpu" ]; then' ; \
169+ printf '%s\n ' ' exec /home/coder/Android/Sdk/emulator/emulator.real "$@"' ; \
170+ printf '%s\n ' ' fi' ; \
171+ printf '%s\n ' 'done' '' ; \
172+ printf '%s\n ' 'exec /home/coder/Android/Sdk/emulator/emulator.real -gpu "$default_gpu" "$@"' ; \
173+ } > /home/coder/Android/Sdk/emulator/emulator && \
177174 chmod +x /home/coder/Android/Sdk/emulator/emulator && \
178175 ln -sfn /home/coder/Android/Sdk /opt/android-sdk && \
179176 chown -R coder:coder /home/coder/Android /home/coder/.android && \
You can’t perform that action at this time.
0 commit comments