From 5d9a7b472dfa95c4baad79c3b15274cbac83f22a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 16 Oct 2025 22:22:10 +0200 Subject: [PATCH] testing --- misc/tools.func | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 } # ------------------------------------------------------------------------------