Skip to content

Commit 9dc75d1

Browse files
committed
Fix running command
1 parent 49ff60b commit 9dc75d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/esy-bash.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (process.argv.length >= 3 && process.argv[2] === "--env") {
1414

1515

1616
const argsToSend = opts ? process.argv.slice(4) : process.argv.slice(2);
17-
const sanitizeArgs = (args) => args.map(a => "\"" + a + "\"").join(" ");
17+
const sanitizeArgs = (args) => args.map((a, idx) => idx === 0 ? a : "\"" + a + "\"").join(" ");
1818

1919
const sanitizedArgs = argsToSend.length > 1 ? sanitizeArgs(argsToSend) : argsToSend[0]
2020

0 commit comments

Comments
 (0)