diff --git a/.github/workflows/devcontainer.yml b/.github/workflows/devcontainer.yml index dc6fa9940..c6c4d7723 100644 --- a/.github/workflows/devcontainer.yml +++ b/.github/workflows/devcontainer.yml @@ -16,13 +16,13 @@ on: runCmd: description: "Command to run inside the devcontainer" required: false - default: test -x "$(command -v prek)" + default: for c in task prek uv node; do command -v "$c" >/dev/null 2>&1 || { echo "missing $c" >&2; exit 1; }; done permissions: contents: read env: - DEFAULT_RUN_CMD: test -x "$(command -v prek)" + DEFAULT_RUN_CMD: for c in task prek uv node; do command -v "$c" >/dev/null 2>&1 || { echo "missing $c" >&2; exit 1; }; done jobs: build: