Remove *.sh 'local' bashism
commit3375af1a96c94c43c55c702811423225f44be88d
authorKyle J. McKay <mackyle@gmail.com>
Wed, 23 Apr 2014 19:10:40 +0000 (23 12:10 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 23 Apr 2014 19:12:28 +0000 (23 12:12 -0700)
treef0504859055e931d312318e9c9abd785a88f5a52
parent1951cdc45d857b99455ec9c1340464e86404aa3e
Remove *.sh 'local' bashism

Use of the 'local' keyword inside functions in order
to reuse variables without affecting the variable's value
external to the function is not part of the POSIX sh
specification.

In some cases simply removing the 'local' statement is enough.

It other cases it is enough to simply change variable names
to not conflict with callers' names.  Recursive function
invocations, however, must use a subshell.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
hooks/pre-commit.sh
tg-update.sh
tg.sh