From be5b2a04c621377abd69b7a1cbcd4cdddce6794b Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Mon, 8 Sep 2014 18:37:54 +0200 Subject: [PATCH] Put quotes around "directory" in case one of them contains spaces. --- SwiftShellTests/Scripts/listallexecutablesinpath.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftShellTests/Scripts/listallexecutablesinpath.swift b/SwiftShellTests/Scripts/listallexecutablesinpath.swift index 5e5ad4e..a1126bb 100755 --- a/SwiftShellTests/Scripts/listallexecutablesinpath.swift +++ b/SwiftShellTests/Scripts/listallexecutablesinpath.swift @@ -5,5 +5,5 @@ import SwiftShell let directories = environment["PATH"]!.split(":") for directory in directories { - run("find \(directory) -type f -perm +ugo+x -print") |> standardoutput + run("find \"\(directory)\" -type f -perm +ugo+x -print") |> standardoutput }