Find private key if it is not set

Commander only calls the function if an argument is provided.
This commit is contained in:
Brandon Keepers 2017-04-29 07:50:59 -05:00
parent 7795137f65
commit 3cdc44e462
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ if (!program.integration) {
program.help();
}
if (!program.privateKey) {
program.privateKey = findPrivateKey();
}
if (program.tunnel) {
try {
setupTunnel();