* testsuite/config-guess.sh: Make 'rc' a local variable.

* testsuite/config-sub.sh: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
John Ericson 2018-08-03 18:03:14 +10:00 committed by Ben Elliston
parent f52be464ee
commit dbe15d73a8
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2018-08-03 John Ericson <john.ericson@obsidian.systems>
* testsuite/config-guess.sh: Make 'rc' a local variable.
* testsuite/config-sub.sh: Likewise.
2018-08-02 John Ericson <john.ericson@obsidian.systems>
* testsuite/config-guess.sh: Re-indent with tabs.

View File

@ -13,7 +13,7 @@ PATH=$(pwd):$PATH
run_config_guess()
{
rc=0
local -i rc=0
while IFS='|' read -r machine release system version processor triplet ; do
sed \
-e "s,@MACHINE@,$machine," \

View File

@ -13,7 +13,7 @@ verbose=false
run_config_sub()
{
rc=0
local -i rc=0
while read -r alias canonical ; do
output=$(sh -eu ../config.sub "$alias")
if test "$output" != "$canonical" ; then