Skip to content

Commit

Permalink
Providing options.privateKey not means no password is required.
Browse files Browse the repository at this point in the history
Previously, a password prompt showed up if you did not provide a password on options.password,
whether or not you provided a privateKey. There should not be a password prompt if a password
OR a privateKey is provided.
  • Loading branch information
morrissinger committed Dec 19, 2014
1 parent 640ec84 commit 91a05d5
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 1 deletion.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

205 changes: 205 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tasks/scp.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = function(grunt) {
});
}

if (options.password) {
if (options.password || options.privateKey) {
execUploads();
} else {
inquirer.prompt([{
Expand Down

0 comments on commit 91a05d5

Please sign in to comment.