From e4d9f78349550a591c2e17676661312b519da07e Mon Sep 17 00:00:00 2001 From: Ander Punnar Date: Sun, 2 Jul 2017 11:51:59 +0300 Subject: [PATCH] grep fixed string --- cdist/conf/type/__apt_mark/explorer/package_installed | 2 +- cdist/conf/type/__apt_mark/explorer/state | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cdist/conf/type/__apt_mark/explorer/package_installed b/cdist/conf/type/__apt_mark/explorer/package_installed index c37c5e76..059e44f4 100644 --- a/cdist/conf/type/__apt_mark/explorer/package_installed +++ b/cdist/conf/type/__apt_mark/explorer/package_installed @@ -25,6 +25,6 @@ else fi dpkg-query --show --showformat '${Status}' "$name" 2>/dev/null \ - | grep -q 'ok installed' \ + | grep -Fq 'ok installed' \ && echo 0 \ || echo 1 diff --git a/cdist/conf/type/__apt_mark/explorer/state b/cdist/conf/type/__apt_mark/explorer/state index 565ad70f..1dfdc911 100644 --- a/cdist/conf/type/__apt_mark/explorer/state +++ b/cdist/conf/type/__apt_mark/explorer/state @@ -24,4 +24,4 @@ else name="$__object_id" fi -apt-mark showhold | grep -q "$name" && echo hold || echo unhold +apt-mark showhold | grep -Fq "$name" && echo hold || echo unhold