dockerfiles/vscode/start.sh

12 lines
207 B
Bash
Raw Normal View History

#!/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}"
2016-11-09 22:04:37 +01:00
sleep infinity