quote the new value check - may contains spaces

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-04-02 09:21:01 +02:00
parent dd566527a9
commit 352c7da46c
1 changed files with 1 additions and 1 deletions

View File

@ -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\'