From 4a2b9a626dcf8250c51a8d26623a1790d7c7f4ec Mon Sep 17 00:00:00 2001 From: ScarabMonkey Date: Fri, 22 Feb 2013 17:06:45 +0000 Subject: [PATCH] Update manifests/init.pp adding the -e switch to the defaults read line - this tells grep that the next text is definitely the pattern to find. This fixes an issue with values that begin with the '-' character, in my case a -1. --- manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 2871c7b..9dff06e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -12,7 +12,7 @@ TRUE => "defaults read $domain $key | grep -qx 1", FALSE => "defaults read $domain $key | grep -qx 0" }, - default => "defaults read $domain $key | grep -qx $value" + default => "defaults read $domain $key | grep -qx -e $value" } } } @@ -32,4 +32,4 @@ class macdefaults{ -} \ No newline at end of file +}