File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
registry/coder/modules/devcontainers-cli Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,16 @@ install() {
3434 # so that the devcontainer command is available
3535 if [ -z " $PNPM_HOME " ]; then
3636 PNPM_HOME=" $CODER_SCRIPT_BIN_DIR "
37- export M_HOME
37+ export PNPM_HOME
3838 fi
3939 pnpm add -g @devcontainers/cli
4040 elif [ " $PACKAGE_MANAGER " = " yarn" ]; then
4141 # We want to cd into `$CODER_SCRIPT_DATA_DIR` as the current directory
4242 # might contain a `package.json` with `packageManager` set to something
4343 # other than `yarn`. When this happens, `yarn global add` will fail to install.
44- cd " $CODER_SCRIPT_DATA_DIR " && yarn global add @devcontainers/cli --prefix " $( dirname " $CODER_SCRIPT_BIN_DIR " ) "
44+ pushd " $CODER_SCRIPT_DATA_DIR " && \
45+ yarn global add @devcontainers/cli --prefix " $( dirname " $CODER_SCRIPT_BIN_DIR " ) " && \
46+ popd
4547 fi
4648}
4749
You can’t perform that action at this time.
0 commit comments