mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
* commit 'b55a584fd5b3aac6f2514fba41a6182030b497ae': In portable shell scripts (using #!/bin/sh) we have to use single square brackets, [ ], instead of the bash-ism double square brackets, [[ ]]. Make this script work on hosts where PERL is not installed at /usr/bin/perl.
This commit is contained in:
commit
bc88c82308
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!/usr/bin/env perl
|
||||
require 5.003;
|
||||
use warnings;
|
||||
|
||||
#
|
||||
# Copyright by The HDF Group.
|
||||
|
@ -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