diff --git a/.licenseignore b/.licenseignore index c9b1be8..1ade952 100644 --- a/.licenseignore +++ b/.licenseignore @@ -1,3 +1,4 @@ Package.swift Package@swift-6.0.swift LICENSE +.swift-version diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..358e78e --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +6.1.0 \ No newline at end of file diff --git a/Sources/Subprocess/Platforms/Subprocess+Linux.swift b/Sources/Subprocess/Platforms/Subprocess+Linux.swift index fa4b965..92d5b9a 100644 --- a/Sources/Subprocess/Platforms/Subprocess+Linux.swift +++ b/Sources/Subprocess/Platforms/Subprocess+Linux.swift @@ -107,7 +107,7 @@ extension Configuration { } // Spawn error if spawnError != 0 { - if spawnError == ENOENT { + if spawnError == ENOENT || spawnError == EACCES { // Move on to another possible path continue } diff --git a/Tests/SubprocessTests/SubprocessTests+Darwin.swift b/Tests/SubprocessTests/SubprocessTests+Darwin.swift index 3f88a35..f1a3874 100644 --- a/Tests/SubprocessTests/SubprocessTests+Darwin.swift +++ b/Tests/SubprocessTests/SubprocessTests+Darwin.swift @@ -41,7 +41,7 @@ struct SubprocessDarwinTests { // Check the proces ID (pid), pross group ID (pgid), and // controling terminal's process group ID (tpgid) let psResult = try await Subprocess.run( - .name("/bin/bash"), + .path("/bin/bash"), arguments: ["-c", "ps -o pid,pgid,tpgid -p $$"], platformOptions: platformOptions, output: .string diff --git a/Tests/SubprocessTests/SubprocessTests+Linux.swift b/Tests/SubprocessTests/SubprocessTests+Linux.swift index 83b3375..b5ea036 100644 --- a/Tests/SubprocessTests/SubprocessTests+Linux.swift +++ b/Tests/SubprocessTests/SubprocessTests+Linux.swift @@ -33,7 +33,7 @@ struct SubprocessLinuxTests { setgid(4321) } let idResult = try await Subprocess.run( - .name("/usr/bin/id"), + .path("/usr/bin/id"), arguments: ["-g"], platformOptions: platformOptions, output: .string