mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
329b27eeeb
Signed-off-by: Jess Frazelle <acidburn@google.com>
12 lines
207 B
Bash
Executable File
12 lines
207 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
|
|
VSCODE_COMMAND=/usr/bin/code
|
|
if [[ ! -f "${VSCODE_COMMAND}" ]]; then
|
|
>&2 echo "${VSCODE_COMMAND} does not exist"
|
|
exit 1
|
|
fi
|
|
su user -c "${VSCODE_COMMAND}"
|
|
sleep infinity
|