File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module.exports = CoreObject.extend({
37
37
var prefix = options . prefix ;
38
38
var manifestPath = options . manifestPath ;
39
39
if ( manifestPath ) {
40
- var key = path . join ( prefix , manifestPath ) ;
40
+ var key = prefix === '' ? manifestPath : [ prefix , manifestPath ] . join ( '/' ) ;
41
41
plugin . log ( 'Downloading manifest for differential deploy from `' + key + '`...' , { verbose : true } ) ;
42
42
return new Promise ( function ( resolve , reject ) {
43
43
var params = { Bucket : options . bucket , Key : key } ;
@@ -81,7 +81,7 @@ module.exports = CoreObject.extend({
81
81
var data = fs . readFileSync ( basePath ) ;
82
82
var contentType = mime . lookup ( basePath ) ;
83
83
var encoding = mime . charsets . lookup ( contentType ) ;
84
- var key = path . join ( prefix , filePath ) ;
84
+ var key = prefix === '' ? filePath : [ prefix , filePath ] . join ( '/' ) ;
85
85
var isGzipped = gzippedFilePaths . indexOf ( filePath ) !== - 1 ;
86
86
87
87
if ( encoding ) {
You can’t perform that action at this time.
0 commit comments