live-build/functions
Lyndon Brown 1b09b15277 stagefiles: refactor Require_stagefile()
- count of params is available as $#, we don't need the pipe-to-wc logic.
 - the whole 'CONTINUE' based logic is silly, we can just return once one
   of the files is found.
 - setting of 'NAME' in the loop was completely pointless.
 - the error message for multiple files was not very clear just injecting
   a sequence of words into a sentence.
 - it did not work correctly if no arguments were given (bad usage)

note, you might question whether the functionality of this function is
correct, as did I; this is tackled in a followup commit whilst this
commit retains the existing functionality!

Gbp-Dch: Short
2020-03-17 22:57:04 +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: fix missing local scope 2020-03-17 17:33:31 +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 stagefiles: refactor Require_stagefile() 2020-03-17 22:57:04 +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