Skip to content

Commit

Permalink
Merge pull request #216 from atsign-foundation/gkc-fix-unable-to-find…
Browse files Browse the repository at this point in the history
…-ssh-public-key-file

fix: fix `Unable to find ssh public key file : false` if -s option is not provided
  • Loading branch information
gkc authored Jun 23, 2023
2 parents 8c74abc + 71c0dfb commit dc422f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/sshnp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,10 @@ class SSHNP {
throw ('\n Unable to find .atKeys file : ${p.atKeysFilePath}');
}

if (!File(p.sendSshPublicKey).existsSync()) {
throw ('\n Unable to find ssh public key file : ${p.sendSshPublicKey}');
if (p.sendSshPublicKey != 'false') {
if (!File(p.sendSshPublicKey).existsSync()) {
throw ('\n Unable to find ssh public key file : ${p.sendSshPublicKey}');
}
}

String sessionId = Uuid().v4();
Expand Down

0 comments on commit dc422f6

Please sign in to comment.