From fff656d1acc596646249eb31903b5bcbb6003caf Mon Sep 17 00:00:00 2001
From: Jonas Weber <github@jonasw.de>
Date: Thu, 4 Oct 2018 19:28:36 +0200
Subject: [PATCH] Unquote $recursive to support empty-case

This is safe to do, as the value of $recursive is not dependent on
user-supplied code.
---
 cdist/conf/type/__directory/gencode-remote | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/cdist/conf/type/__directory/gencode-remote b/cdist/conf/type/__directory/gencode-remote
index 4220c6fb..374db47a 100755
--- a/cdist/conf/type/__directory/gencode-remote
+++ b/cdist/conf/type/__directory/gencode-remote
@@ -57,18 +57,18 @@ get_current_value() {
 }
 
 set_group() {
-    echo "chgrp '$recursive' '$1' '$destination'"
-    echo "chgrp '$recursive' '$1'" >> "$__messages_out"
+    echo "chgrp $recursive '$1' '$destination'"
+    echo "chgrp $recursive '$1'" >> "$__messages_out"
 }
 
 set_owner() {
-    echo "chown '$recursive' '$1' '$destination'"
-    echo "chown '$recursive' '$1'" >> "$__messages_out"
+    echo "chown $recursive '$1' '$destination'"
+    echo "chown $recursive '$1'" >> "$__messages_out"
 }
 
 set_mode() {
-    echo "chmod '$recursive' '$1' '$destination'"
-    echo "chmod '$recursive' '$1'" >> "$__messages_out"
+    echo "chmod $recursive '$1' '$destination'"
+    echo "chmod $recursive '$1'" >> "$__messages_out"
 }
 
 case "$state_should" in