This commit is contained in:
siritami
2024-03-18 15:39:42 +07:00
parent 36d760e17c
commit 893db90ed1
3 changed files with 30 additions and 17 deletions

View File

@@ -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 ]]; then
if [[ $url != *.asc ]] && [[ $url != *.json ]]; then
name=$(basename "$url")
wget -q -O "$name" "$url"
green_log "[+] Downloading $name from $owner"
@@ -66,8 +66,10 @@ 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
green_log "[+] Downloading $names from $2"
wget -q -O "$names" $url
if [[ $names != *.json ]]; then
green_log "[+] Downloading $names from $2"
wget -q -O "$names" $url
fi
done
done
fi