mirror of
https://github.com/GradienceTeam/Community.git
synced 2024-09-28 18:47:55 +00:00
feat: add script
This commit is contained in:
parent
4b2da59da2
commit
2c27b0a7f8
1 changed files with 16 additions and 0 deletions
16
scripts/update.sh
Executable file
16
scripts/update.sh
Executable 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
|
Loading…
Reference in a new issue