File corosync-2.3.4-fix-bashisms.patch of Package corosync

--- corosync-2.3.6.orig/cts/agents/mem_leak_test.sh	2016-05-27 23:36:30.000000000 +0800
+++ corosync-2.3.6/cts/agents/mem_leak_test.sh	2016-12-15 10:24:44.079422036 +0800
@@ -41,14 +41,14 @@
     find $f | sed "s|\.|_|g" | sed "s|/|.|g" | while read l
     do 
       echo $l.count u64 $COUNT >> $temp_file
-      let COUNT="$COUNT+1"
+      COUNT="$COUNT+1"
     done
 
     corosync-cmapctl -p $temp_file
     corosync-cmapctl -D usr
   done
   AFTER=$(get_mem $TYPE)
-  let DIFF="$AFTER - $BEFORE"
+  DIFF="$AFTER - $BEFORE"
   rm -f $temp_file
   #echo $f diff $TYPE $DIFF
   echo $DIFF
@@ -76,11 +76,11 @@
   find /usr/bin | sed "s|\.|_|g" | sed "s|/|.|g" | while read l
   do 
     corosync-cmapctl -s $l u32 $COUNT
-    let COUNT="$COUNT+1"
+    COUNT="$COUNT+1"
   done
   corosync-cmapctl -D usr
   AFTER=$(get_mem $TYPE)
-  let DIFF="$AFTER - $BEFORE"
+  DIFF="$AFTER - $BEFORE"
   echo $DIFF
 
   exit 0
openSUSE Build Service is sponsored by