vscode / root /usr /local /bin /install-extension
justest's picture
Duplicate from SpacesExamples/vscode
819ff17
raw
history blame
244 Bytes
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
_install=(/app/openvscode-server/bin/openvscode-server "--install-extension")
if [ "$(whoami)" == "abc" ]; then
"${_install[@]}" "$@"
else
s6-setuidgid abc "${_install[@]}" "$@"
fi