updated to create dir if not exists
This commit is contained in:
@@ -30,7 +30,11 @@ VERSION=$(echo ${HTML_SOURCE} | jq -r .tag_name)
|
||||
# get assets
|
||||
ASSETS=$(echo ${HTML_SOURCE} | jq -r .assets[])
|
||||
|
||||
jq -c .assets[] <<< ${HTML_SOURCE}| while read i; do
|
||||
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)
|
||||
if [ ${name} == 'scrutiny-collector-metrics-linux-amd64' ]; then
|
||||
|
||||
Reference in New Issue
Block a user