summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-12-19 21:06:57 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-12-19 21:06:57 (GMT)
commitec4418a75716b7f2ce53e627de28d139b281b545 (patch)
tree68a6846bcfcb109adb69822bde89a1184813ff03 /tools/test
parentd11b347aa77cbcfa2bf782c8856bf559444ad880 (diff)
downloadhdf5-ec4418a75716b7f2ce53e627de28d139b281b545.zip
hdf5-ec4418a75716b7f2ce53e627de28d139b281b545.tar.gz
hdf5-ec4418a75716b7f2ce53e627de28d139b281b545.tar.bz2
In portable shell scripts (using #!/bin/sh) we have to use single square
brackets, [ ], instead of the bash-ism double square brackets, [[ ]].
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/h5dump/testh5dump.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/h5dump/testh5dump.sh.in b/tools/test/h5dump/testh5dump.sh.in
index 4b85138..dc7d999 100644
--- a/tools/test/h5dump/testh5dump.sh.in
+++ b/tools/test/h5dump/testh5dump.sh.in
@@ -923,7 +923,7 @@ GREPTEST()
cd $TESTDIR
$ENVCMD $RUNSERIAL $DUMPER_BIN -p "$@"
) >$actual 2>$actual_err
- if [[ "$txttype" = "ERRTXT" ]]; then
+ if [ "$txttype" = "ERRTXT" ]; then
$GREP "$expectdata" $actual_err > /dev/null
else
$GREP "$expectdata" $actual > /dev/null