Skip to content

Commit

Permalink
Merge pull request #81 from noppoMan/unimplemented-error
Browse files Browse the repository at this point in the history
Fix 'fatal error: init(contentsOfFile:usedEncoding:) is not yet implemented' on Linux
  • Loading branch information
noppoMan authored Oct 11, 2017
2 parents ba75b2c + cf120fe commit 85b19cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Hexaville/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class Deploy: Command {
}

func detectVersion() -> String {
if let path = try? Finder.findPath(childDir: "/.hexaville-version"), let version = try? String(contentsOfFile: path) {
if let path = try? Finder.findPath(childDir: "/.hexaville-version"), let version = try? String(contentsOfFile: path, encoding: .utf8) {
return version.components(separatedBy: "\n").first ?? "Unknown"
}

Expand Down

0 comments on commit 85b19cf

Please sign in to comment.