diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/actions.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/actions.js b/cli/actions.js index 25643da..70803b2 100644 --- a/cli/actions.js +++ b/cli/actions.js | |||
@@ -97,9 +97,10 @@ function put(filePath, otherFilePaths, options) { | |||
97 | 97 | ||
98 | async.eachSeries(files, function (file, callback) { | 98 | async.eachSeries(files, function (file, callback) { |
99 | var relativeFilePath; | 99 | var relativeFilePath; |
100 | |||
100 | if (path.isAbsolute(file)) { | 101 | if (path.isAbsolute(file)) { |
101 | relativeFilePath = path.basename(file); | 102 | relativeFilePath = path.basename(file); |
102 | } else if (path.resolve(file).indexOf(process.cwd().length) === 0) { // relative to current dir | 103 | } else if (path.resolve(file).indexOf(process.cwd()) === 0) { // relative to current dir |
103 | relativeFilePath = path.resolve(file).slice(process.cwd().length + 1); | 104 | relativeFilePath = path.resolve(file).slice(process.cwd().length + 1); |
104 | } else { // relative but somewhere else | 105 | } else { // relative but somewhere else |
105 | relativeFilePath = path.basename(file); | 106 | relativeFilePath = path.basename(file); |