Skip to content

Commit 89f57b6

Browse files
chore: drive by fixes
1 parent 11ffff2 commit 89f57b6

File tree

1 file changed

+4
-2
lines changed
  • registry/coder/modules/devcontainers-cli

1 file changed

+4
-2
lines changed

registry/coder/modules/devcontainers-cli/run.sh

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)