docker-vscode-server/root/usr/local/bin/install-extension
2023-05-18 23:19:29 +02:00

11 lines
295 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
_install=(/usr/local/bin/code-server "serve-local" "--accept-server-license-terms" "--quality" "insiders" "--install-extension")
if [ "$(whoami)" == "abc" ]; then
"${_install[@]}" "$@"
else
s6-setuidgid abc "${_install[@]}" "$@"
fi