mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
11 lines
502 B
Bash
Executable File
11 lines
502 B
Bash
Executable File
#!/bin/bash
|
|
|
|
rm -rf sync_sheets.sh
|
|
touch sync_sheets.sh
|
|
echo '#!/bin/bash' > sync_sheets.sh
|
|
echo 'set -e' >> sync_sheets.sh
|
|
chmod +x sync_sheets.sh
|
|
CWD=$(pwd)
|
|
cd $1;
|
|
fd dist --type d --strip-cwd-prefix -j1 --exec bash -c 'echo ./gcp.sh \"$(pwd)/$(printf "%s" "{//}")\" \"$(printf "gs://roll20-cdn/$CDN_SHEETS_FOLDER/%s\n" "{//}")\" \"$(printf "gs://roll20-cdn/$CDN_SHEETS_FOLDER/%s" "{//}")/dist\" \"$(printf "gs://roll20-cdn/$CDN_SHEETS_FOLDER/%s" "{//}")/translations\"' | tee -a $CWD/sync_sheets.sh
|