]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: install-deps.sh: set with_seastar 23079/head
authorNathan Cutler <ncutler@suse.com>
Mon, 16 Jul 2018 20:07:57 +0000 (22:07 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 16 Jul 2018 20:07:57 +0000 (22:07 +0200)
25d5122b5538062e8282251c3d7bae0f9792d596 introduced code into
install-deps.sh which was intended to set a variable "with_seastar" to the
string "true" or "false" depending on whether or not an environment
variable WITH_SEASTAR is defined.

As originally implemented, the conditional is always true, so with_seastar
is set to "true" unconditionally. Fix this by putting $WITH_SEASTAR in
double quotes.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
install-deps.sh

index 30c6fd814daa9274793e758868cdb38c0f36392d..a02fd61b812e8bd5c854e8f29ed810f1a71ac9ec 100755 (executable)
@@ -23,7 +23,7 @@ export LC_ALL=C # the following is vulnerable to i18n
 
 ARCH=`uname -m`
 
-if [ -n $WITH_SEASTAR ]; then
+if [ -n "$WITH_SEASTAR" ]; then
     with_seastar=true
 else
     with_seastar=false