mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 08:13:51 -05:00
fix(devcontainer): ensure post-create runs in GitHub Codespaces (#5635)
This commit is contained in:
@@ -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}/..)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user