updated to create dir if not exists

This commit is contained in:
2025-10-30 18:34:53 -04:00
parent cd46b36554
commit 21b69fd8d4

View File

@@ -30,6 +30,10 @@ VERSION=$(echo ${HTML_SOURCE} | jq -r .tag_name)
# get assets
ASSETS=$(echo ${HTML_SOURCE} | jq -r .assets[])
if [ ! -d "${SCRUTINY_DIRECTORY}" ]; then
mkdir "${SCRUTINY_DIRECTORY}"
fi
jq -c .assets[] <<< ${HTML_SOURCE} | while read i; do
name=$(echo ${i} | jq -r .name)
downloadUrl=$(echo ${i} | jq -r .browser_download_url)