about summary refs log tree commit diff
path: root/tools/run-nm-test.sh
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2020-08-31 11:11:14 +0200
committerSebastien Bacher <seb128@ubuntu.com>2020-08-31 11:11:14 +0200
commitbbb262bfd5200313834db8fb36b7fb20aa0913b5 (patch)
tree70fad3f1f44bb7299dd1f5f376a6b8483a023136 /tools/run-nm-test.sh
parent6e17a2e7ad9453c0afe34dab0e6768ad8ee447c2 (diff)
parent9d722f3d3492e31c0b3e4bcba603ffd65309c621 (diff)
Merge remote-tracking branch 'salsa/debian/master' into ubuntu/master
Diffstat (limited to 'tools/run-nm-test.sh')
-rwxr-xr-xtools/run-nm-test.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh
index 11c9e17a..4df3ab96 100755
--- a/tools/run-nm-test.sh
+++ b/tools/run-nm-test.sh
@@ -96,12 +96,12 @@ else
         NMTST_USE_VALGRIND=0
     fi
 
-    if [ -n "${NMTST_LIBTOOL-:x}" ]; then
-        NMTST_LIBTOOL=(sh "$SCRIPT_PATH/../libtool" --mode=execute)
-    elif [ -n "${NMTST_LIBTOOL-x}" ]; then
+    if [ -z "${NMTST_LIBTOOL+x}" ]; then
+        NMTST_LIBTOOL=(sh "$SCRIPT_PATH/../libtool" "--mode=execute")
+    elif [ -z "$NMTST_LIBTOOL" ]; then
         NMTST_LIBTOOL=()
     else
-        NMTST_LIBTOOL=($NMTST_LIBTOOL --mode=execute)
+        NMTST_LIBTOOL=("$NMTST_LIBTOOL" "--mode=execute")
     fi
     unset TEST
     while test $# -gt 0; do