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/core.sh
10
lib/core.sh
|
@ -116,9 +116,9 @@ function bashio::core.version() {
|
|||
# ------------------------------------------------------------------------------
|
||||
# Returns the latest version of Home Assistant.
|
||||
# ------------------------------------------------------------------------------
|
||||
function bashio::core.last_version() {
|
||||
function bashio::core.version_latest() {
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::core 'core.info.last_version' '.last_version'
|
||||
bashio::core 'core.info.version_latest' '.version_latest'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
@ -126,14 +126,14 @@ function bashio::core.last_version() {
|
|||
# ------------------------------------------------------------------------------
|
||||
function bashio::supervisor.update_available() {
|
||||
local version
|
||||
local last_version
|
||||
local version_latest
|
||||
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
|
||||
version=$(bashio::core.version)
|
||||
last_version=$(bashio::core.last_version)
|
||||
version_latest=$(bashio::core.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