# HG changeset patch
# User Yuya Nishihara <y...@tcha.org>
# Date 1523158259 -32400
#      Sun Apr 08 12:30:59 2018 +0900
# Node ID 8aa9c24cdfed32a38e777474f6d5e6652de7dc28
# Parent  9a35569ef5ab58c975f56ecb063a1b82b25ec6b8
tests: quote variable passed to shell test command

diff --git a/tests/helpers-testrepo.sh b/tests/helpers-testrepo.sh
--- a/tests/helpers-testrepo.sh
+++ b/tests/helpers-testrepo.sh
@@ -10,7 +10,7 @@
 # system mercurial installation, and may require extensions or settings from
 # the system installation.
 
-if [ -n $HGTESTEXTRAEXTENSIONS ]; then
+if [ -n "$HGTESTEXTRAEXTENSIONS" ]; then
     for extension in $HGTESTEXTRAEXTENSIONS; do
         extraoptions="$extraoptions --config extensions.$extension=!"
     done
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to