live-build/functions
Lyndon Brown c55eb8a0c3 use local scope for private function vars
all vars affected have been carefully checked to be quite certain
that they are definitely local

where variable is assigned the return value of a function/command, the
local "declaration" is deliberately done on a separate line, since
`local FOO` is actually treated itself as a command rather than a
declaration; will thus always cause $? to be zero, and thus if done on
the same line as such an assignment can not only clobber $? but in doing
so unintentionally blocks failure of a command from triggering the
expected exit from having `set -e`.

also, from testing, i have found that when assigning "${@}" this must be
done on a separate line confusingly as otherwise an error occurs.

Gbp-Dch: Short
2020-03-16 22:10:03 +00:00
..
aliases.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
architectures.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
arguments.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
bootloaders.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
breakpoints.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
cache.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
chroot.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
chroot_bind_path.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
color.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
common.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
conffile.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
configuration.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
defaults.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
echo.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
exit.sh exit: don't convert numeric exit code to string 2020-03-13 16:06:20 +00:00
firmwarelists.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
help.sh "Live Systems" -> "Debian Live" 2020-03-11 15:23:31 +00:00
init.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
lockfile.sh locks: tidy lock acquisition 2020-03-13 15:37:38 +00:00
losetup.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
man.sh Revert "Test for executables: replace 'which' with more robust 'command -v'" 2020-03-12 12:32:26 +00:00
packagelists.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
packages.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
sourcelist.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
stagefile.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
usage.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
wrapper.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00