From b49a1fbea594fdefa2150ec845bc16b105372fb4 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Thu, 22 Oct 2020 12:12:42 +0200 Subject: [PATCH] Fix check_uptodate : properly check that syspatch exists --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 857c5e0..e9bbefb 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -138,7 +138,7 @@ check_evobackup(){ } check_uptodate(){ - if [ -f $(command -v syspatch) ]; then + if [ $(command -v syspatch) ]; then if syspatch -c | egrep "." 1> /dev/null 2>&1; then failed "IS_UPTODATE" "Security update available! Update with syspatch(8)!" fi