Scan QR Code to import SSH private key

This commit is contained in:
Yishi Lin 2017-06-07 02:12:54 +08:00
parent a31f5b797d
commit 3cde0d954c
6 changed files with 175 additions and 25 deletions

View file

@ -120,8 +120,7 @@ class GitServerSettingTableViewController: UITableViewController {
}
private func gitSSHKeyExists() -> Bool {
return FileManager.default.fileExists(atPath: Globals.gitSSHPublicKeyPath) &&
FileManager.default.fileExists(atPath: Globals.gitSSHPrivateKeyPath)
return FileManager.default.fileExists(atPath: Globals.gitSSHPrivateKeyPath)
}
func showSSHKeyActionSheet() {