mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 16:17:40 +00:00
Update utils.sh
This commit is contained in:
@@ -46,7 +46,7 @@ dl_gh() {
|
||||
if [[ $line == *"\"browser_download_url\":"* ]]; then
|
||||
if [ $assets -eq 1 ]; then
|
||||
url=$(echo $line | cut -d '"' -f 4)
|
||||
if [[ $url != *.asc ]] && [[ $url != *.json ]]; then
|
||||
if [[ $url != *.asc ]]; then
|
||||
name=$(basename "$url")
|
||||
wget -q -O "$name" "$url"
|
||||
green_log "[+] Downloading $name from $owner"
|
||||
@@ -66,10 +66,8 @@ dl_gh() {
|
||||
wget -qO- "https://api.github.com/repos/$2/$repo/releases/tags/$3" \
|
||||
| jq -r '.assets[] | "\(.browser_download_url) \(.name)"' \
|
||||
| while read -r url names; do
|
||||
if [[ $names != *.json ]]; then
|
||||
green_log "[+] Downloading $names from $2"
|
||||
wget -q -O "$names" $url
|
||||
fi
|
||||
green_log "[+] Downloading $names from $2"
|
||||
wget -q -O "$names" $url
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user