changeset 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 d33997123ea5
children e9dea82ea1f3
files tests/helpers-testrepo.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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