Skip to content

Commit 857c200

Browse files
authored
fix: wrap in quotes if the project name contains spaces (#218)
1 parent 89a8403 commit 857c200

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ async function init() {
446446

447447
console.log(`\nDone. Now run:\n`)
448448
if (root !== cwd) {
449-
console.log(` ${bold(green(`cd ${path.relative(cwd, root)}`))}`)
449+
const cdProjectName = path.relative(cwd, root)
450+
console.log(` ${bold(green(`cd ${cdProjectName.includes(' ') ? `"${cdProjectName}"` : cdProjectName}`))}`)
450451
}
451452
console.log(` ${bold(green(getCommand(packageManager, 'install')))}`)
452453
if (needsPrettier) {

0 commit comments

Comments
 (0)