Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put double quotes around rm command args #633

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ccouzens
Copy link

@ccouzens ccouzens commented Feb 3, 2025

if $PNPM_HOME or $(pnpm store path) expand to values with a space character, then the shell will treat it as two different arguments for rm to delete.

Depending on where the space is, it could delete something bad.

But putting double quotes around it, we prevent that, and the shell will always treat is as a single argument

if `$PNPM_HOME` or `$(pnpm store path)` expand to values with a space character, then `rm` will treat it as two different arguments and try and delete them both.

Depending on where the space is, it could delete something bad.

But putting double quotes around it, we prevent that.
Copy link

stackblitz bot commented Feb 3, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Feb 3, 2025

@ccouzens is attempting to deploy a commit to the pnpm Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant