Fix check_uptodate : properly check that syspatch exists

This commit is contained in:
Jérémy Dubois 2020-10-22 12:12:42 +02:00
parent 682cd3afaa
commit b49a1fbea5

View file

@ -138,7 +138,7 @@ check_evobackup(){
} }
check_uptodate(){ check_uptodate(){
if [ -f $(command -v syspatch) ]; then if [ $(command -v syspatch) ]; then
if syspatch -c | egrep "." 1> /dev/null 2>&1; then if syspatch -c | egrep "." 1> /dev/null 2>&1; then
failed "IS_UPTODATE" "Security update available! Update with syspatch(8)!" failed "IS_UPTODATE" "Security update available! Update with syspatch(8)!"
fi fi