Skip to content

Commit

Permalink
fix: script should fail with exit '1' (#2712)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored Jan 12, 2025
1 parent bd877cb commit 124ea98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions minifier/next_gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,6 @@ async function main() {
console.time("download-manifest");

const manifestUrl = "https://www.bungie.net/Platform/Destiny2/Manifest/";
const liveManifestUrl = "https://app.guardianghost.com/json/bungie_manifest.json";

const jsonManifest = await downloadJsonFile(manifestUrl);

Expand All @@ -828,7 +827,7 @@ async function main() {

if (JSON.stringify(jsonManifest) === JSON.stringify(liveManifest)) {
console.log("Manifest matches live version - no update needed");
process.exit(0); // Clean exit - will not trigger GitHub Actions failure
process.exit(1); // Clean exit - will not trigger GitHub Actions failure
}
console.log("Manifest differs from live version - proceeding with update");
}
Expand Down

0 comments on commit 124ea98

Please sign in to comment.