9136d17843
Avoids the special case of "|> WriteableStreamType".
16 lines
365 B
Swift
Executable File
16 lines
365 B
Swift
Executable File
#!/usr/bin/env swiftshell
|
|
|
|
import SwiftShell
|
|
|
|
/*
|
|
let directories = environment["PATH"]!.split(":")
|
|
|
|
for directory in directories {
|
|
run("find \"\(directory)\" -type f -perm +ugo+x -print") |> write(standardoutput)
|
|
}
|
|
*/
|
|
|
|
environment["PATH"]! |> split(":")
|
|
|> map { directory in run("find \"\(directory)\" -type f -perm +ugo+x -print") }
|
|
|> write(standardoutput)
|