Skip to content

Commit

Permalink
fix: create alloy project with spaces with --alloy (#14046)
Browse files Browse the repository at this point in the history
* fix: create alloy project with spaces with --alloy

* use path.join

* update
  • Loading branch information
m1ga authored May 25, 2024
1 parent 3171e14 commit c601e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ CreateCommand.prototype.run = function run(logger, config, cli, finished) {
}

if (cli.argv.alloy !== undefined) {
execSync('alloy new ' + cli.argv['workspace-dir'] + '/' + cli.argv.name);
execSync(`alloy new "${path.join(cli.argv['workspace-dir'], cli.argv.name)}"`, { stdio: 'inherit' });
}

finished(err);
Expand Down

0 comments on commit c601e7e

Please sign in to comment.