testing
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user