From 2fdff153d6f1c78693f7e49a9baa2b43cc668061 Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Sat, 22 Feb 2014 00:51:54 +0100
Subject: [PATCH] dont fail if result is empty file

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 cdist/conf/type/__line/gencode-remote | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cdist/conf/type/__line/gencode-remote b/cdist/conf/type/__line/gencode-remote
index 1ac1ad13..f73444e3 100755
--- a/cdist/conf/type/__line/gencode-remote
+++ b/cdist/conf/type/__line/gencode-remote
@@ -80,7 +80,7 @@ tmpfile=\$(mktemp ${file}.cdist.XXXXXXXXXX)
 if [ -f "$file" ]; then
    cp -p "$file" "\$tmpfile"
 fi
-grep -v $greparg '$regex' '$file' > \$tmpfile
+grep -v $greparg '$regex' '$file' > \$tmpfile || true
 mv -f "\$tmpfile" "$file"
 eof
     ;;