diff options
author | kaa <kaa@disroot.org> | 2025-09-01 22:09:12 -0700 |
---|---|---|
committer | kaa <kaa@disroot.org> | 2025-09-01 22:09:12 -0700 |
commit | 980997c3441f52a5a4f79326c86e9a93a0a35853 (patch) | |
tree | 1d0bdc3a60f2be49d336624b31c9bb9b060e3218 /lib/font/graphics/zip/dl.sh | |
parent | f38b4ad8b7543b088c5c0c4018285127ad4f4680 (diff) |
Diffstat (limited to 'lib/font/graphics/zip/dl.sh')
-rwxr-xr-x | lib/font/graphics/zip/dl.sh | 22 |
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 |