mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2026-08-04 10:46:10 +00:00
Update tools.sh
This commit is contained in:
parent
06e3291aa5
commit
3a2d2d57de
1 changed files with 2 additions and 1 deletions
|
|
@ -1,10 +1,11 @@
|
|||
#!/bin/bash
|
||||
dl_gh() {
|
||||
for repo in $1 ; do
|
||||
wget -qO- "https://api.github.com/repos/$2/$repo/releases/$3" \
|
||||
| jq -r '.assets[] | "\(.browser_download_url) \(.name)"' \
|
||||
| while read -r url names; do
|
||||
echo "Downloading $names from $url"
|
||||
wget -q -O "$names" $url
|
||||
wget -q -O "$names" "$url"
|
||||
done
|
||||
done
|
||||
echo "All assets downloaded"
|
||||
|
|
|
|||
Loading…
Reference in a new issue