Skip to contentSkip to conversation

gfs2-utils: Fix bashism in test script

PATCH New Valentin Vidic 2 participants 2 messages May 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2-utils: Fix bashism in test script

Tests fail when /bin/sh is not /bin/bash due to missing let command:

21: Values of rg_data0, rg_data, rg_bitbytes FAILED (mkfs.at:146)
/<<PKGBUILDDIR>>/tests/rgrifieldscheck.sh: 19: let: not found

---
 tests/rgrifieldscheck.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/rgrifieldscheck.sh +1 -1
index 85f6408e..1fbf6729 100755
@@ -16,5 +16,5 @@ do
 		exit 1
 	fi
 
-	test $field = ri_bitbytes && let i++
+	test $field = ri_bitbytes && i=$((i+1))
 done
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 gfs2-utils: Fix bashism in test script

Quoted 4 lines · Valentin Vidic

Tests fail when /bin/sh is not /bin/bash due to missing let command:

21: Values of rg_data0, rg_data, rg_bitbytes FAILED (mkfs.at:146)
/<<PKGBUILDDIR>>/tests/rgrifieldscheck.sh: 19: let: not found

Applied - thanks!

Andy

Quoted 16 lines
---
  tests/rgrifieldscheck.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tests/rgrifieldscheck.sh +1 -1
index 85f6408e..1fbf6729 100755
@@ -16,5 +16,5 @@ do
  		exit 1
  	fi
 
-	test $field = ri_bitbytes && let i++
+	test $field = ri_bitbytes && i=$((i+1))
  done