Skip to content

Commit

Permalink
prompt for scp password
Browse files Browse the repository at this point in the history
  • Loading branch information
2silver committed Sep 19, 2014
1 parent 7de93d6 commit 9fd5ac0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/scp.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ module.exports = function(grunt) {
});
}

if (options.password === true) {
if (options.password) {
execUploads();
} else {
inquirer.prompt([{
name: 'password',
message: 'password: ',
Expand All @@ -95,8 +97,6 @@ module.exports = function(grunt) {
execUploads();
});
}
else {
execUploads();
}

});
};

0 comments on commit 9fd5ac0

Please sign in to comment.