Skip to content

Commit

Permalink
Merge pull request #21 from geedew/bug/cwd-no-require
Browse files Browse the repository at this point in the history
CWD causes the script to bail when it's not set
  • Loading branch information
dkurucz committed May 1, 2016
2 parents e57baec + f55ac33 commit f4b3d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/scp.js
Expand Up @@ -84,7 +84,7 @@ module.exports = function(grunt) {
filename = filepath;
filepath = path.join(fileObj.cwd, filepath);
} else {
filename = path.relative(fileObj.orig.cwd, filepath);
filename = path.relative(fileObj.orig.cwd || '', filepath);
}
destfile = path.join(fileObj.dest, filename);
client.upload(filepath, destfile, cb);
Expand Down

0 comments on commit f4b3d42

Please sign in to comment.