Skip to content

Commit 81c95ea

Browse files
authored
Merge pull request #2 from p-x9/fix/launch-path
fix to apply launchPath in config file
2 parents 3c31a4a + 2fb38b8 commit 81c95ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/run-script/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func run() throws {
4848
func run(_ script: Script) throws {
4949
let process = Process()
5050

51-
process.launchPath = "/bin/sh"
51+
process.launchPath = script.launchPath ?? "/bin/sh"
5252

5353
if let path = script.path {
5454
process.arguments = [path]

0 commit comments

Comments
 (0)