grep regular expressions must be quoted
This commit is contained in:
parent
87d98dc8d0
commit
ffecb8a7c4
|
@ -144,7 +144,7 @@ is_pack_samba(){
|
||||||
|
|
||||||
is_installed(){
|
is_installed(){
|
||||||
for pkg in $*; do
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue