From 445c0b62410e36e77c60ab8abc7e054812753f35 Mon Sep 17 00:00:00 2001 From: usr Date: Wed, 5 Aug 2026 17:14:20 +0200 Subject: test --- 3p/fetch.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 3p/fetch.sh (limited to '3p/fetch.sh') diff --git a/3p/fetch.sh b/3p/fetch.sh new file mode 100644 index 0000000..44b76b1 --- /dev/null +++ b/3p/fetch.sh @@ -0,0 +1,14 @@ +#!/bin/sh -euC +# run me from project root please! looks for -d ./3p/ +set -x + +notfile() { if [ -f "$1" ]; then echo "$1" bestaat al; false; fi; } +fetch() { [ -d 3p ] && notfile "3p/$(basename "$1")" && wget -nc "$1" -O "3p/$(basename "$1")" ; } + +[ -d 3p ] + +cat urls.txt | while read url; do + fetch "$done" +done + +set +x -- cgit v1.3.1