Skip to content

Commit 6adb9d1

Browse files
authored
Merge pull request #515 from salesforcecli/wr/whitespacePath
fix: fix when in dir with whitespace
2 parents 051503e + e638b30 commit 6adb9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generators/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class Plugin extends Generator {
9191
const templateRepo = this.answers.internal
9292
? 'git clone https://github.com/salesforcecli/plugin-template-sf.git'
9393
: 'git clone https://github.com/salesforcecli/plugin-template-sf-external.git';
94-
shelljs.exec(`${templateRepo} ${directory}`);
94+
shelljs.exec(`${templateRepo} "${directory}"`);
9595
try {
9696
fs.rmSync(`${path.resolve(this.answers.name, '.git')}`, { recursive: true });
9797
} catch {
@@ -105,7 +105,7 @@ export default class Plugin extends Generator {
105105
}
106106

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

110110
this.sourceRoot(TEMPLATES_DIR);
111111

0 commit comments

Comments
 (0)