Skip to content

Commit 0ab08aa

Browse files
authored
Merge pull request #55 from pkgxdev/fix-macos-shims
Fix shims on macOS; Fixes #54
2 parents 2b64017 + 789d6e9 commit 0ab08aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgm.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,12 @@ async function shim(args: string[], basePath: string) {
223223
await Deno.remove(join(basePath, "bin", name));
224224
}
225225

226-
await Deno.writeTextFile(join(basePath, "bin", name), shim, {
226+
// without the newline zsh on macOS fails to invoke the interpreter with a bad interpreter error
227+
await Deno.writeTextFile(join(basePath, "bin", name), shim + "\n", {
227228
mode: 0o755,
228229
});
230+
231+
console.error(join(basePath, "bin", name));
229232
}
230233
}
231234
}

0 commit comments

Comments
 (0)