mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
In portable shell scripts (using #!/bin/sh) we have to use single square
brackets, [ ], instead of the bash-ism double square brackets, [[ ]].
This commit is contained in:
parent
d11b347aa7
commit
ec4418a757
@ -18,7 +18,7 @@
|
||||
# supports SWMR.
|
||||
./swmr_check_compat_vfd
|
||||
rc=$?
|
||||
if [[ $rc != 0 ]] ; then
|
||||
if [ $rc != 0 ] ; then
|
||||
echo
|
||||
echo "The VFD specified by the HDF5_DRIVER environment variable"
|
||||
echo "does not support SWMR."
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user