fix(devcontainer): ensure post-create runs in GitHub Codespaces (#5635)

This commit is contained in:
Andrew Brey
2023-10-22 15:14:10 -07:00
committed by GitHub
parent 3da0103502
commit 81e9080fa6

View File

@@ -3,7 +3,7 @@
set -eo pipefail
# when in a VS Code or GitHub Codespaces devcontainer
if [ -n "${REMOTE_CONTAINERS}" ]; then
if [ -n "${REMOTE_CONTAINERS}" ] || [ -n "${CODESPACES}" ]; then
this_dir=$(cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P)
workspace_root=$(realpath ${this_dir}/..)