diff --git a/contrib/sheet-pixie/index.ts b/contrib/sheet-pixie/index.ts index ffb55c5acff..ba9239d1c50 100644 --- a/contrib/sheet-pixie/index.ts +++ b/contrib/sheet-pixie/index.ts @@ -64,14 +64,14 @@ async function main(args: string[]) { } let jobStatus = 0; +const args = Bun.argv.slice(2); -main(Bun.argv.slice(2)) +main(args) .then() .catch((err) => { - console.error(err); + console.error(Bun.stderr, `${err} (args=${args})`); jobStatus = 1; }) .finally(() => { - console.log({ jobStatus }); process.exit(jobStatus); }); diff --git a/contrib/sheet-pixie/save.ts b/contrib/sheet-pixie/save.ts index 26f18248b54..0eb503658d9 100644 --- a/contrib/sheet-pixie/save.ts +++ b/contrib/sheet-pixie/save.ts @@ -1,5 +1,4 @@ function saveToFile(path: string, content: string) { - console.log("Writing content to file: " + path); return Bun.write(path, content); } export { saveToFile }; diff --git a/force-update.sh b/force-update.sh index ff381214309..3c941a631c1 100755 --- a/force-update.sh +++ b/force-update.sh @@ -1,3 +1,3 @@ #!/bin/bash -gcloud storage rsync --project=roll20-actual $1 gs://roll20-cdn/$CDN_SHEETS_FOLDER --delete-unmatched-destination-objects --cache-control='no-cache' +gcloud storage rsync --project=roll20-actual $1 gs://roll20-cdn/$CDN_SHEETS_FOLDER --delete-unmatched-destination-objects --cache-control='no-cache' --recursive