all.sh: clean up some uses of "local" variables

While pure sh doesn't have a concept of local variables, we can partially
emulate them by unsetting variables before we exit the function, and use the
convention of giving them lowercase names to distinguish from global
variables.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2020-06-08 10:59:41 +02:00
parent d2b5ad871d
commit 805b1461b8

View file

@ -1624,7 +1624,7 @@ run_component () {
# Restore the build tree to a clean state.
cleanup
current_component=""
unset current_component
}
# Preliminary setup