From ffecb8a7c43e8c9b0e3fb39fa175fabb10f8f93a Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 17 Aug 2018 15:26:55 +0200 Subject: [PATCH] grep regular expressions must be quoted --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index c3cb6be..4fc9a8c 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -144,7 +144,7 @@ is_pack_samba(){ is_installed(){ for pkg in $*; do - dpkg -l $pkg 2>/dev/null | grep -q -E ^(i|h)i || return 1 + dpkg -l $pkg 2>/dev/null | grep -q -E '^(i|h)i' || return 1 done }