diff --git a/.devcontainer/scripts/post_create.sh b/.devcontainer/scripts/post_create.sh index 9c2736d..801c379 100755 --- a/.devcontainer/scripts/post_create.sh +++ b/.devcontainer/scripts/post_create.sh @@ -4,6 +4,7 @@ install_devcontainer_cli() { set -e curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash nvm install 24 + export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm echo "🔧 Installing DevContainer CLI..." cd "$(dirname "$0")/../tools/devcontainer-cli" npm ci --omit=dev