Skip to content

Commit

Permalink
Merge pull request #515 from salesforcecli/wr/whitespacePath
Browse files Browse the repository at this point in the history
fix: fix when in dir with whitespace
  • Loading branch information
mshanemc authored Jul 19, 2024
2 parents 051503e + e638b30 commit 6adb9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generators/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class Plugin extends Generator {
const templateRepo = this.answers.internal
? 'git clone https://github.com/salesforcecli/plugin-template-sf.git'
: 'git clone https://github.com/salesforcecli/plugin-template-sf-external.git';
shelljs.exec(`${templateRepo} ${directory}`);
shelljs.exec(`${templateRepo} "${directory}"`);
try {
fs.rmSync(`${path.resolve(this.answers.name, '.git')}`, { recursive: true });
} catch {
Expand All @@ -105,7 +105,7 @@ export default class Plugin extends Generator {
}

public writing(): void {
const pjson = readJson<PackageJson>(path.join(this.env.cwd, 'package.json'));
const pjson = readJson<PackageJson>(path.normalize(path.join(this.env.cwd, 'package.json')));

this.sourceRoot(TEMPLATES_DIR);

Expand Down

0 comments on commit 6adb9d1

Please sign in to comment.