feat: add script

This commit is contained in:
0xMRTT 2022-10-15 16:56:27 +02:00
parent 4b2da59da2
commit 2c27b0a7f8
No known key found for this signature in database

16
scripts/update.sh Executable file
View file

@ -0,0 +1,16 @@
curated=("yaru")
official=("tango")
BASE_URL="https://raw.githubusercontent.com/gradience-presets"
BRANCH="main"
DEFAULT_FILENAME="preset.json"
mkdir -p curated
for preset in "${curated[@]}"; do
wget "$BASE_URL/$preset/$BRANCH/$DEFAULT_FILENAME" -O "curated/${preset}.json" -a wget.log
done
mkdir -p official
for preset in "${official[@]}"; do
wget "$BASE_URL/$preset/$BRANCH/$DEFAULT_FILENAME" -O "official/${preset}.json" -a wget.log
done