diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-12 20:12:47 +0000 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-17 22:57:04 +0000 |
commit | 1b09b1527744a50baf4e0cd45aacced461e2d862 (patch) | |
tree | 230a655e214e5267780e1a9dea788dfea91be04a /scripts/build/chroot_linux-image | |
parent | dadeec9d396382d42bae0cf490dc55456fa71199 (diff) | |
download | vyos-live-build-1b09b1527744a50baf4e0cd45aacced461e2d862.tar.gz vyos-live-build-1b09b1527744a50baf4e0cd45aacced461e2d862.zip |
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
Diffstat (limited to 'scripts/build/chroot_linux-image')
0 files changed, 0 insertions, 0 deletions