mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
good idea
This commit is contained in:
parent
a4959300ea
commit
37a0d2b087
|
@ -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" *
|
||||
|
|
Loading…
Reference in a new issue