diff --git a/devcontainer.sh b/devcontainer.sh index 32908a9e..ba35e7f0 100644 --- a/devcontainer.sh +++ b/devcontainer.sh @@ -3,7 +3,7 @@ # dc.sh — devcontainer helper for this repo # # Usage: -# devcontainer.sh +# ./devcontainer.sh # # Configs: backend | asset_list # Commands: up, shell, down, rebuild @@ -12,15 +12,15 @@ # so it's safe to call cold. # # Examples: -# ./scripts/dc.sh backend shell # up + exec bash -# ./scripts/dc.sh asset_list up -# ./scripts/dc.sh backend rebuild -# ./scripts/dc.sh backend down +# ./devcontainer.sh backend shell # up + exec bash +# ./devcontainer.sh asset_list up +# ./devcontainer.sh backend rebuild +# ./devcontainer.sh backend down set -euo pipefail SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" -REPO_ROOT="$(cd -- "${SCRIPT_DIR}/.." &>/dev/null && pwd)" +REPO_ROOT="${SCRIPT_DIR}" VALID_CONFIGS=(backend asset_list) VALID_COMMANDS=(up shell down rebuild)