Skip to content

Commit

Permalink
all.sh: clean up some uses of "local" variables
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mpg committed Jun 23, 2020
1 parent d2b5ad8 commit 805b146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scripts/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ run_component () {

# Restore the build tree to a clean state.
cleanup
current_component=""
unset current_component
}

# Preliminary setup
Expand Down

0 comments on commit 805b146

Please sign in to comment.