summaryrefslogtreecommitdiff
path: root/.zs/components/buttons
diff options
context:
space:
mode:
authordelta <darkussdelta@gmail.com>2026-01-27 04:18:15 +0100
committerdelta <darkussdelta@gmail.com>2026-01-27 04:18:15 +0100
commit3026a05a2a2be91aa160de230a838acd5c2b3536 (patch)
tree141ea424f7c4149c27e6749a73fec7dd4fd354ab /.zs/components/buttons
parentce0a6c0388b4684d8f15a7ff1049e42e2d8cc63c (diff)
woohoo no more bash componentsHEADmaster
Diffstat (limited to '.zs/components/buttons')
-rwxr-xr-x.zs/components/buttons16
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