armbian-build/lib/functions/general
Igor Velkov ed371f5f5a
(#9400 P3a) Replace useless cat with input redirection (#9404)
* (#9400 P3a) trap-logging: replace useless cat with direct file arguments

- gzip < file → gzip -c file (direct argument, -c for stdout)
- cat file | ansi2txt → ansi2txt < file (ansi2txt has no file argument)
- Remove now-unnecessary shellcheck disable=SC2002 comments

* (#9400 P3a) logging: replace useless cat with direct file argument

- cat file | grep | sed → grep file | sed (grep accepts filename directly)
- Remove now-unnecessary shellcheck disable=SC2002 comment

* (#9400 P3a) initrd: replace useless cat with direct file argument

- cat file | md5sum → md5sum file (md5sum accepts filename directly)

* (#9400 P3a) write-device: replace useless cat with direct file argument

- cat file | awk → awk file (awk accepts filename directly)
- Remove now-unnecessary shellcheck disable=SC2002 comment

* (#9400 P3a) export-logs: replace useless cat with direct file argument

- cat file | sed → sed file (sed accepts filename directly)
- Remove now-unnecessary shellcheck disable=SC2002 comment

* (#9400 P3a) python-tools: replace cat subshell with $(<file) syntax

- $(cat file) → $(< file) (bash builtin, no subprocess)

* (#9400 P3a) artifact-armbian-base-files: replace useless cat with direct file argument

- cat file | grep → grep file (grep accepts filename directly)
2026-02-18 09:28:14 +01:00
..
apt-utils.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
bat-cat.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
chroot-helpers.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cleaning.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
countdown.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
deprecations.sh stop the build if LIB_TAG is set at all; some users expect it to work while it doesn't 2023-03-17 08:32:11 +01:00
extensions.sh framework - extension_hook_opt_out 2026-01-08 12:07:56 +01:00
git-ref2info.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
git.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
github-actions.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
hash-files.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
memoize-cached.sh memoize: add user feedback and configurable timeout for flock 2026-01-21 01:40:21 +01:00
oci-oras.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
python-tools.sh (#9400 P3a) Replace useless cat with input redirection (#9404) 2026-02-18 09:28:14 +01:00
retry.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
shellcheck.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00