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" *