diff tests/helpers-testrepo.sh @ 37475:152f1b47e0ad

tests: quote variable passed to shell test command
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Apr 2018 12:30:59 +0900
parents 4e6a6d0dccee
children 16574ca8b155 813226b3b4ca
line wrap: on
line diff
--- a/tests/helpers-testrepo.sh	Sun Apr 08 11:23:55 2018 +0900
+++ b/tests/helpers-testrepo.sh	Sun Apr 08 12:30:59 2018 +0900
@@ -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