Remove Version Info, cleaner log output

This commit is contained in:
RandomNinjaAtk 2023-03-18 16:34:19 -04:00 committed by GitHub
parent 18913bc052
commit 1ce5d97316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="1.0.3" scriptVersion="1.0.4"
######## Settings ######## Settings
scriptInterval="15m" scriptInterval="15m"
@ -94,8 +94,6 @@ verifyApiAccess () {
fi fi
arrApiTest=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .instanceName) arrApiTest=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .instanceName)
if [ "$arrApiTest" == "$arrName" ]; then if [ "$arrApiTest" == "$arrName" ]; then
arrVersion=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .version)
log "$arrName Version: $arrVersion"
break break
else else
log "$arrName is not ready, sleeping until valid response..." log "$arrName is not ready, sleeping until valid response..."