From 3a2d2d57de29b0daffa260b2fa897e2cb96e703f Mon Sep 17 00:00:00 2001 From: Fioren <102145692+FiorenMas@users.noreply.github.com> Date: Thu, 18 May 2023 21:41:44 +0700 Subject: [PATCH] Update tools.sh --- src/build/tools.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build/tools.sh b/src/build/tools.sh index 69fa268..20b2fd0 100644 --- a/src/build/tools.sh +++ b/src/build/tools.sh @@ -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"