This commit is contained in:
parent
e03359fc80
commit
5d9a7b472d
@ -17,7 +17,11 @@ cache_installed_version() {
|
|||||||
get_cached_version() {
|
get_cached_version() {
|
||||||
local app="$1"
|
local app="$1"
|
||||||
mkdir -p /var/cache/app-versions
|
mkdir -p /var/cache/app-versions
|
||||||
[[ -f "/var/cache/app-versions/${app}_version.txt" ]] && cat "/var/cache/app-versions/${app}_version.txt"
|
if [[ -f "/var/cache/app-versions/${app}_version.txt" ]]; then
|
||||||
|
cat "/var/cache/app-versions/${app}_version.txt"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user