Skip to content

Commit

Permalink
Merge pull request #52 from Heshdude/platform-specific-installers
Browse files Browse the repository at this point in the history
Fixing the order of the file name
  • Loading branch information
Heshdude committed Aug 16, 2020
2 parents e1875cb + d26842b commit 8441548
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ app.get('/:package', (req, res) => {
const withParam = req.query.with;
const fileName = ['installer'];

if (minParam){
fileName.push('min');
}
if (withParam){
fileName.push(withParam);
}
if (minParam){
fileName.push('min');
}

fileName.push('sh');
const fileNameString = fileName.join(".");
const file = bucket.file(req.params.package + '/'+fileNameString);
Expand Down

0 comments on commit 8441548

Please sign in to comment.