diff options
Diffstat (limited to '.zs/components/buttons')
| -rwxr-xr-x | .zs/components/buttons | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.zs/components/buttons b/.zs/components/buttons new file mode 100755 index 0000000..8f4e166 --- /dev/null +++ b/.zs/components/buttons @@ -0,0 +1,16 @@ +#!/bin/sh + +BUTTONS_DIR="assets/buttons/" + +jq -r -f .zs/components/dl_buttons.jq buttons.json | while read url file; do + if [ ! -d ".pub/$BUTTONS_DIR" ]; then + mkdir ".pub/$BUTTONS_DIR" + fi + path=".pub/$BUTTONS_DIR/$file" + if [ ! -f "$path" ]; then + wget -O "$path" "$url" + fi +done + + +jq -r --arg BUTTONS_DIR "$BUTTONS_DIR" -f .zs/components/buttons.jq buttons.json |
