mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 12:01:25 +00:00
🔨 last_version -> version_latest (#25)
This commit is contained in:
parent
11d683cc87
commit
e65982ae89
5 changed files with 23 additions and 23 deletions
10
lib/dns.sh
10
lib/dns.sh
|
@ -110,9 +110,9 @@ function bashio::dns.version() {
|
|||
# ------------------------------------------------------------------------------
|
||||
# Returns the latest version of the DNS.
|
||||
# ------------------------------------------------------------------------------
|
||||
function bashio::dns.last_version() {
|
||||
function bashio::dns.version_latest() {
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::dns 'dns.info.last_version' '.last_version'
|
||||
bashio::dns 'dns.info.version_latest' '.version_latest'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
@ -120,14 +120,14 @@ function bashio::dns.last_version() {
|
|||
# ------------------------------------------------------------------------------
|
||||
function bashio::dns.update_available() {
|
||||
local version
|
||||
local last_version
|
||||
local version_latest
|
||||
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
|
||||
version=$(bashio::dns.version)
|
||||
last_version=$(bashio::dns.last_version)
|
||||
version_latest=$(bashio::dns.version_latest)
|
||||
|
||||
if [[ "${version}" = "${last_version}" ]]; then
|
||||
if [[ "${version}" = "${version_latest}" ]]; then
|
||||
return "${__BASHIO_EXIT_NOK}"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue