Skip to content

Commit

Permalink
Quote paths to handle spaces (#152)
Browse files Browse the repository at this point in the history
When setting the bootstrap path value, it was not quoted which could
result in errors as seen in #148 when the path includes space
characters. This PR fixes the issue by quoting the path value.
  • Loading branch information
ncalteen authored Feb 13, 2025
2 parents 9d60787 + 328ba28 commit 8f7aead
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/local-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function entrypoint() {

// Require the bootstrap script in NODE_OPTIONS.
process.env.NODE_OPTIONS = process.env.NODE_OPTIONS
? `${process.env.NODE_OPTIONS} --require ${bootstrapPath}`
: `--require ${bootstrapPath}`
? `${process.env.NODE_OPTIONS} --require "${bootstrapPath}"`
: `--require "${bootstrapPath}"`

// Disable experimental warnings.
process.env.NODE_NO_WARNINGS = 1
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@github/local-action",
"description": "Local Debugging for GitHub Actions",
"version": "2.6.1",
"version": "2.6.2",
"type": "module",
"author": "Nick Alteen <[email protected]>",
"private": false,
Expand Down

0 comments on commit 8f7aead

Please sign in to comment.