From 3026a05a2a2be91aa160de230a838acd5c2b3536 Mon Sep 17 00:00:00 2001 From: delta Date: Tue, 27 Jan 2026 04:18:15 +0100 Subject: woohoo no more bash components --- .zs/components/buttons | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 .zs/components/buttons (limited to '.zs/components/buttons') 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 -- cgit v1.2.3