summaryrefslogtreecommitdiff
path: root/devel/hdf5/patches/patch-tools_test_h5repack_h5repack.sh.in
blob: 906ca8e0131b81211cd6ad0f0052dcf7ff2d6b0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-tools_test_h5repack_h5repack.sh.in,v 1.3 2022/11/06 17:00:56 adam Exp $

Portability fix.

--- tools/test/h5repack/h5repack.sh.in.orig	2022-05-25 21:09:13.000000000 +0000
+++ tools/test/h5repack/h5repack.sh.in
@@ -891,7 +891,7 @@ TOOLTEST_FAIL()
         echo " FAILED"
         echo "    $failure"
     else
-        if [ $RET == 0 ] ; then
+        if [ $RET = 0 ] ; then
             nerrors="`expr $nerrors + 1`"
             echo " FAILED"
         else
@@ -990,7 +990,7 @@ TOOLFAILSV()
         $RUNSERIAL $H5DIFF_BIN -v $infile $outfile
     ) >$actual 2>$actual_err
     RET=$?
-    if [ $RET == 0 ] ; then
+    if [ $RET = 0 ] ; then
          echo "*FAILED*"
          nerrors="`expr $nerrors + 1`"
     else