good idea

This commit is contained in:
ed 2020-11-19 02:24:26 +01:00
parent a4959300ea
commit 37a0d2b087

View file

@ -40,11 +40,8 @@ cache="$od/.copyparty-repack.cache"
awk -F\" '/"browser_download_url".*(\.tar\.gz|-sfx\.)/ {print$4}' awk -F\" '/"browser_download_url".*(\.tar\.gz|-sfx\.)/ {print$4}'
) | ) |
tee /dev/stderr | tee /dev/stderr |
sed 's/\r$//' | tr -d '\r' | tr '\n' '\0' | xargs -0 curl -L --remote-name-all
while IFS= read -r url; do
# download src and sfx
curl -LO "$url"
done
# debug: create cache # debug: create cache
#tar -czvf "$cache" * #tar -czvf "$cache" *
} }
@ -89,6 +86,10 @@ rm -rf copyparty-{0..9}*.*.*{0..9}
) )
# and include the repacker itself too
cp -pv "$od/$0" copyparty-extras/
# create the bundle # create the bundle
fn=copyparty-$(date +%Y-%m%d-%H%M%S).tgz fn=copyparty-$(date +%Y-%m%d-%H%M%S).tgz
tar -czvf "$od/$fn" * tar -czvf "$od/$fn" *