From ea9e4a6b7ea132c5786bfe1775e7fcca7b2e824f Mon Sep 17 00:00:00 2001 From: Felipe Fleming Date: Wed, 24 Apr 2019 16:30:26 -0300 Subject: [PATCH] Updating characters which is deprecated --- install.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.swift b/install.swift index d095874..9997df7 100644 --- a/install.swift +++ b/install.swift @@ -52,7 +52,7 @@ func shell(launchPath: String, arguments: [String]) -> String let data = pipe.fileHandleForReading.readDataToEndOfFile() let output = String(data: data, encoding: String.Encoding.utf8)! - if output.characters.count > 0 { + if output.count > 0 { //remove newline character. let lastIndex = output.index(before: output.endIndex) return String(output[output.startIndex ..< lastIndex])