diff --git a/Sources/DangerSwiftPeriphery/ShellExecutor.swift b/Sources/DangerSwiftPeriphery/ShellExecutor.swift index c0533e9..2db2210 100644 --- a/Sources/DangerSwiftPeriphery/ShellExecutor.swift +++ b/Sources/DangerSwiftPeriphery/ShellExecutor.swift @@ -30,7 +30,13 @@ struct ShellExecutor: ShellExecutable { let env = ProcessInfo.processInfo.environment let task = Process() + + #if os(macOS) task.launchPath = env["SHELL"] + #else + task.launchPath = "/bin/sh" + #endif + task.arguments = ["-l", "-c", script] task.currentDirectoryPath = FileManager.default.currentDirectoryPath