         task.standardOutput = pipe
         task.standardError = pipe
 
-        let result = launchTask(task, pipe: pipe)
+        let result = launchTask(task)
         return result
     }
 

        task.launch()
        task.waitUntilExit()

        if task.terminationStatus == EXIT_SUCCESS {
            return .success(outputString)
        } else {

        return task
    }

    private func launchTask(task: NSTask) -> Result<String, TerminationStatus> {
        if task.standardOutput.fileHandleForReading != nil {
            task.standardOutput.fileHandleForReading.readabilityHandler = { fileHandle in
                if let string = NSString(data: fileHandle.availableData, encoding: NSUTF8StringEncoding) {
