forked from ungleich-public/cdist
grep fixed string
This commit is contained in:
parent
c052e507eb
commit
e4d9f78349
2 changed files with 2 additions and 2 deletions
|
@ -25,6 +25,6 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dpkg-query --show --showformat '${Status}' "$name" 2>/dev/null \
|
dpkg-query --show --showformat '${Status}' "$name" 2>/dev/null \
|
||||||
| grep -q 'ok installed' \
|
| grep -Fq 'ok installed' \
|
||||||
&& echo 0 \
|
&& echo 0 \
|
||||||
|| echo 1
|
|| echo 1
|
||||||
|
|
|
@ -24,4 +24,4 @@ else
|
||||||
name="$__object_id"
|
name="$__object_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt-mark showhold | grep -q "$name" && echo hold || echo unhold
|
apt-mark showhold | grep -Fq "$name" && echo hold || echo unhold
|
||||||
|
|
Loading…
Reference in a new issue