summaryrefslogtreecommitdiff
path: root/lib/font/graphics/zip/dl.sh
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2025-09-01 22:09:12 -0700
committerkaa <kaa@disroot.org>2025-09-01 22:09:12 -0700
commit980997c3441f52a5a4f79326c86e9a93a0a35853 (patch)
tree1d0bdc3a60f2be49d336624b31c9bb9b060e3218 /lib/font/graphics/zip/dl.sh
parentf38b4ad8b7543b088c5c0c4018285127ad4f4680 (diff)
Font metadataHEADmaster
Diffstat (limited to 'lib/font/graphics/zip/dl.sh')
-rwxr-xr-xlib/font/graphics/zip/dl.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/font/graphics/zip/dl.sh b/lib/font/graphics/zip/dl.sh
new file mode 100755
index 0000000..c482ca9
--- /dev/null
+++ b/lib/font/graphics/zip/dl.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+< list sort -R | while read -r url
+do
+ file="$(echo "$url" | sed -e "s|.*/||")"
+ if ! [ -f "$file" ]
+ then
+ curl -LO "$url"
+ case "$file" in
+ *.tar.*)
+ tar xf "$file"
+ ;;
+ *)
+ dir="${file%.*}"
+ mkdir $dir
+ cd $dir
+ 7z e ../"$file"
+ cd ..
+ ;;
+ esac
+ fi
+done