From 37a0d2b0875497ecd38d58856e05bc80d3f33da5 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 19 Nov 2020 02:24:26 +0100 Subject: [PATCH] good idea --- scripts/copyparty-repack.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/copyparty-repack.sh b/scripts/copyparty-repack.sh index 93a578b3..8296fad7 100755 --- a/scripts/copyparty-repack.sh +++ b/scripts/copyparty-repack.sh @@ -40,11 +40,8 @@ cache="$od/.copyparty-repack.cache" awk -F\" '/"browser_download_url".*(\.tar\.gz|-sfx\.)/ {print$4}' ) | tee /dev/stderr | - sed 's/\r$//' | - while IFS= read -r url; do - # download src and sfx - curl -LO "$url" - done + tr -d '\r' | tr '\n' '\0' | xargs -0 curl -L --remote-name-all + # debug: create 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 fn=copyparty-$(date +%Y-%m%d-%H%M%S).tgz tar -czvf "$od/$fn" *