Skip to content

Commit

Permalink
Merge pull request #59 from davidjbradshaw/master
Browse files Browse the repository at this point in the history
Don't add '/' to empty path
  • Loading branch information
andrewrjones committed Mar 21, 2014
2 parents 8f672de + a719ae7 commit 4c59ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/sftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = function (grunt) {
setOption('showProgress');

// add trailing slash to path if needed
if (!options.path.match(/(\/|\\)$/)) {
if ((''!==options.path) && !options.path.match(/(\/|\\)$/)) {
options.path = options.path + '/';
}

Expand Down

0 comments on commit 4c59ec0

Please sign in to comment.