From: Sage Weil Date: Mon, 9 Mar 2009 20:18:56 +0000 (-0700) Subject: initscripts: allow vars with spaces X-Git-Tag: v0.7~9^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=180f416872a809c012334b5d801cc407539b036d;p=ceph.git initscripts: allow vars with spaces --- diff --git a/src/ceph_common.sh b/src/ceph_common.sh index edbe1189e6ea..9177e9965f81 100644 --- a/src/ceph_common.sh +++ b/src/ceph_common.sh @@ -105,7 +105,7 @@ get_conf() { tmp=$tmp" -s $1" shift done - eval $var=`$CCONF -c $conf $tmp "$key" "$def"` + eval "$var=\"`$CCONF -c $conf $tmp \"$key\" \"$def\"`\"" } get_conf_bool() {