From 352c7da46c78806dd4a22f7f543eba4713f5275e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 2 Apr 2013 09:21:01 +0200 Subject: [PATCH] quote the new value check - may contains spaces Signed-off-by: Nico Schottelius --- cdist/conf/type/__user/gencode-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__user/gencode-remote b/cdist/conf/type/__user/gencode-remote index 52a8d198..a2cdfd22 100755 --- a/cdist/conf/type/__user/gencode-remote +++ b/cdist/conf/type/__user/gencode-remote @@ -104,7 +104,7 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then else for property in $(ls .); do new_value="$(cat "$property")" - if [ -z $new_value ];then # Boolean values have no value + if [ -z "$new_value" ];then # Boolean values have no value set -- "$@" "$(shorten_property $property)" else set -- "$@" "$(shorten_property $property)" \'$new_value\'