Exclude download .asc files

This commit is contained in:
Fioren
2024-03-02 23:24:41 +07:00
committed by GitHub
parent f15eb7a51f
commit 98c0bcc6cb

View File

@@ -45,11 +45,13 @@ dl_gh() {
if [[ $line == *"\"browser_download_url\":"* ]]; then if [[ $line == *"\"browser_download_url\":"* ]]; then
if [ $assets -eq 1 ]; then if [ $assets -eq 1 ]; then
url=$(echo $line | cut -d '"' -f 4) url=$(echo $line | cut -d '"' -f 4)
if [[ $url != *.asc ]]; then
name=$(basename "$url") name=$(basename "$url")
wget -q -O "$name" "$url" wget -q -O "$name" "$url"
green_log "[+] Downloading $name from $owner" green_log "[+] Downloading $name from $owner"
fi fi
fi fi
fi
if [[ $line == *"],"* ]]; then if [[ $line == *"],"* ]]; then
if [ $assets -eq 1 ]; then if [ $assets -eq 1 ]; then
assets=0 assets=0