1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-20 01:52:32 +01:00
This commit is contained in:
GilbN 2022-07-22 12:11:33 +00:00
parent 68bf6e5b5c
commit 2c0cf2cf43

View File

@ -11,7 +11,7 @@ mkdir -p "$DIR"
printf "\nSaving mods into $DIR\n\n" printf "\nSaving mods into $DIR\n\n"
jq -r 'to_entries | map(.key + "|" + (.value | tostring)) | .[]' <<< "$MODS" | \ jq -r 'to_entries | map(.key + "|" + (.value | tostring)) | .[]' <<< "$MODS" | \
while IFS='|' read key value; do while IFS='|' read key value; do
curl "$value" --create-dirs --output "$DIR/$key" --silent curl "$value" --create-dirs --output "$DIR/98-themepark-$key" --silent
echo "Fetched $key script" echo "Fetched $key script"
done done
chmod go+rx $DIR chmod go+rx $DIR