Skip to content

Commit

Permalink
Merge pull request #1634 from arturo-lang/fix-package-executable-argu…
Browse files Browse the repository at this point in the history
…ments

Fix argument passing for package executables
  • Loading branch information
drkameleon authored May 18, 2024
2 parents f2b092a + 0de0d67 commit 16e69a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/packager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ proc processRemotePackage(pkg: string, verspec: VersionSpec, doLoad: bool = true
if (let executableFile = packageLocation / executable.get(); executableFile.fileExists()):
createDir(BinFolder.fmt)
let executableDest = BinFolder.fmt / pkg
writeToFile(executableDest, "#!/usr/bin/env bash\narturo {executableFile}".fmt)
writeToFile(executableDest, "#!/usr/bin/env bash\narturo {executableFile} \"$@\"".fmt)
setFilePermissions(executableDest, {fpUserRead, fpUserWrite, fpUserExec, fpGroupRead, fpGroupWrite, fpGroupExec, fpOthersRead, fpOthersWrite, fpOthersExec})

try:
Expand Down

0 comments on commit 16e69a8

Please sign in to comment.