11 lines
295 B
Plaintext
Executable File
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
|