Skip to content

Commit

Permalink
Fixes lack of recursive syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxvu committed Oct 1, 2023
1 parent f45f61f commit a807baa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions contrib/sheet-pixie/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
1 change: 0 additions & 1 deletion contrib/sheet-pixie/save.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
function saveToFile(path: string, content: string) {
console.log("Writing content to file: " + path);
return Bun.write(path, content);
}
export { saveToFile };
2 changes: 1 addition & 1 deletion force-update.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a807baa

Please sign in to comment.