Skip to content
Snippets Groups Projects
install-extension 272 B
Newer Older
Roxedus's avatar
Roxedus committed
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

_install=(/app/code-server/bin/code-server "--extensions-dir" "/config/extensions" "--install-extension")
Roxedus's avatar
Roxedus committed

if [ "$(whoami)" == "abc" ]; then
    "${_install[@]}" "$@"
else
    s6-setuidgid abc "${_install[@]}" "$@"
fi