🔨 last_version -> version_latest (#25)

This commit is contained in:
Franck Nijhof 2020-04-02 02:12:59 +02:00 committed by GitHub
parent 11d683cc87
commit e65982ae89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 23 deletions

View file

@ -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