From 6fdfe3ba345a092f78711e5d03da0dde552b2003 Mon Sep 17 00:00:00 2001 From: Nick Shi Date: Tue, 29 Oct 2019 14:41:53 -0500 Subject: [PATCH] remove deprecated characters --- 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])