Skip to content

Commit 8d025dc

Browse files
committed
Fix bug in fetching via LATEST file
Signed-off-by: Rob Stryker <rob@oxbeef.net>
1 parent a3d5a21 commit 8d025dc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

build/package.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ Promise.resolve()
2828
.then((v)=> v.split('\n')[1])
2929
.then((v)=> v.split('=')[1])
3030
.then((v)=> {console.log("downloading " + v); return v;})
31-
.then((v)=> {download(v, './'); return v;})
32-
.then((v)=> v.split('/').reverse()[0])
33-
.then((v)=> { console.log("decompressing " + v); return v;})
34-
.then((v)=> decompress(v, './server', { strip: 1 }))
31+
.then((v)=> {
32+
download(v, './')
33+
.then(()=>v.split('/').reverse()[0])
34+
.then((x)=>decompress(x, './server', { strip: 1}))
35+
.catch((err)=>{throw err;});
36+
})
3537
.catch((err)=>{ throw err; });

0 commit comments

Comments
 (0)