diff --git a/misc/tools.func b/misc/tools.func index 525d28ed..dc95a838 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -17,7 +17,11 @@ cache_installed_version() { get_cached_version() { local app="$1" 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 } # ------------------------------------------------------------------------------