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

Node not bash for init #404

Merged
merged 12 commits into from
May 30, 2024
Merged

Node not bash for init #404

merged 12 commits into from
May 30, 2024

Conversation

tlovett1
Copy link
Member

Move init command to node

Copy link

changeset-bot bot commented May 30, 2024

🦋 Changeset detected

Latest commit: b96afbd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
10up-toolkit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

process.exit(1);
}

execSync(`git clone ${template} ${initPath}`);

Check warning

Code scanning / CodeQL

Shell command built from environment values Medium

This shell command depends on an uncontrolled
absolute path
.
const muPluginPath = `${initPath}/mu-plugins/${projectNameLowercaseHypen}-plugin`;

// Copy contents of toolkitPath/project/local into initPath
execSync(`rsync -rc "${toolkitPath}/project/local/" "${initPath}"`);

Check warning

Code scanning / CodeQL

Shell command built from environment values Medium

This shell command depends on an uncontrolled
absolute path
.
This shell command depends on an uncontrolled
absolute path
.
@nicholasio nicholasio merged commit d9f3642 into develop May 30, 2024
7 checks passed
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.

2 participants