Commit Graph

4 Commits

Author SHA1 Message Date
Sertonix 3fa9fda05b avoid masking exit code of shell commands
When a variables is declared (with 'local' or 'export') a failing
command is ignored[0]. Changing that so abuild should now error out
properly in more cases.

Also remove 1 pipe that could have prevented an issue recently[1] where
the 'du' command core dumped but abuild didn't error.

The other pipes were not changed for now since it may be better to use
'set -o pipefail' instead. That may require some changes with commands
like grep which use a non-zero exit code to indicate if a match was
found or similar[2].

[0]: https://www.shellcheck.net/wiki/SC2155
[1]: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16005#note_395899
[2]: https://github.com/koalaman/shellcheck/issues/665
2024-10-09 10:00:07 +00:00
Jakub Jirutka 35077b43e8 replace deprecated `...` syntax with $(...) in shell scripts 2016-08-23 00:09:07 +02:00
Timo Teras 8fb3af8d05 initramfs: process accounting & misc fixes
enable bootchartd to use kernel process accounting for noticing
all processes.

also fix various little bits around the initramfs init.
2009-03-03 19:43:26 +02:00
Timo Teras 52864ab482 initramfs: bootchart support
include a modified version of bootchartd, and modify the initramfs
to take start recording of boot sequence to /var/log/bootchart.tgz
if "chart" option is specified in boot command line.
2009-02-26 10:55:43 +02:00