From: Andrew Price Date: Wed, 30 May 2018 11:33:14 +0100 Subject: [Cluster-devel] [PATCH] gfs2-utils: Fix bashism in test script In-Reply-To: <20180530070950.28476-1-Valentin.Vidic@CARNet.hr> References: <20180530070950.28476-1-Valentin.Vidic@CARNet.hr> Message-ID: <3b017195-5216-845e-e110-6016da5d5b74@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 30/05/18 08:09, Valentin Vidic wrote: > 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) > /<>/tests/rgrifieldscheck.sh: 19: let: not found Applied - thanks! Andy > --- > tests/rgrifieldscheck.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/rgrifieldscheck.sh b/tests/rgrifieldscheck.sh > index 85f6408e..1fbf6729 100755 > --- a/tests/rgrifieldscheck.sh > +++ b/tests/rgrifieldscheck.sh > @@ -16,5 +16,5 @@ do > exit 1 > fi > > - test $field = ri_bitbytes && let i++ > + test $field = ri_bitbytes && i=$((i+1)) > done >