live-build/functions
Lyndon Brown cf2a9b951c arguments: fix unreachable and poor argument error handling
all scripts use `set -e` which means that if getop fails, the subsequent
error check that would print an error in addition to any printed by getopt
itself would never actually be reached.

the first though here would be to remove the pointless error check, but
getopt does not include the word "error" with an unrecognised option
failure, nor does it use colour to highlight problems, both of which mean
that it is a little lacking in terms of highlighting problems to users.

thus we properly capture and use the exit code here and output an
appropriate message per invalid argument vs getopt internal error.

also, removed the redundant stderr redirection which is already done
by Echo_error().

Gbp-Dch: Short
2020-03-10 12:45:23 +00:00
..
aliases.sh aliases: simplify excessively complex In_list function 2020-03-05 22:07:50 +00:00
architectures.sh use actual bool state where applicable within functions 2020-03-09 11:17:53 +00:00
arguments.sh arguments: fix unreachable and poor argument error handling 2020-03-10 12:45:23 +00:00
bootloaders.sh Fix permission on functions/bootloaders.sh 2016-11-28 23:15:38 +01:00
breakpoints.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
cache.sh cache: clarify and simplify package cache save/restore 2020-03-05 22:09:20 +00:00
chroot.sh don't unnecessarily convert exit codes to strings 2020-03-05 11:33:12 +00:00
chroot_bind_path.sh Making functions/chroot_bind_path.sh executable within the source tree (Closes: #777096). 2015-02-07 06:46:45 +01:00
color.sh echo: fix bad colour choice 2020-03-09 12:52:08 +00:00
common.sh help/usage: fix incorrect program command 2020-03-05 20:37:57 +00:00
conffile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
configuration.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
defaults.sh config: rename the config set/check functions for clarity 2020-03-10 12:39:37 +00:00
echo.sh echo: fix bad colour choice 2020-03-09 12:52:08 +00:00
exit.sh tidy script init (2/4) - build stage scripts 2020-03-10 12:39:37 +00:00
firmwarelists.sh firmware: enable caching for archive content file with firmware lists 2020-03-05 22:13:57 +00:00
help.sh help/usage: simplify 2020-03-10 12:45:23 +00:00
init.sh config: rename the config set/check functions for clarity 2020-03-10 12:39:37 +00:00
lockfile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
losetup.sh fix consistency in binary execution and existance checking 2020-03-09 10:51:11 +00:00
man.sh fix consistency in binary execution and existance checking 2020-03-09 10:51:11 +00:00
packagelists.sh fix missing use of echo helpers 2020-03-05 21:04:22 +00:00
packages.sh Print an error and exit if a host package (dependency) is missing. 2018-04-05 16:24:36 +01:00
sourcelist.sh archives: tidy deb-src exclusion 2020-03-09 10:54:23 +00:00
stagefile.sh use actual bool state where applicable within functions 2020-03-09 11:17:53 +00:00
usage.sh help/usage: simplify 2020-03-10 12:45:23 +00:00
wrapper.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00