commit:     ead85d2c48b1be1e4361622cfe42203a3326c119
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sat Jun  7 12:09:00 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun  7 22:54:13 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ead85d2c

ecompress: specify commands for truncating redirections

This is just to satisfy the SC2188 policy of shellcheck. At this point,
the unit is essentially shellcheck-clean. There remains an informational
message noting that the file being sourced cannot be followed (SC1091).

Link: https://www.shellcheck.net/wiki/SC2188
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/ecompress | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/ecompress b/bin/ecompress
index 107bf36d42..26051d1a47 100755
--- a/bin/ecompress
+++ b/bin/ecompress
@@ -15,7 +15,7 @@ do_ignore() {
        local -a skip_dirs
        local skip
 
-       > "${T}/.ecompress_skip_files" || die
+       : > "${T}/.ecompress_skip_files" || die
        for skip; do
                if [[ -d ${ED%/}/${skip#/} ]]; then
                        skip_dirs+=( "${ED%/}/${skip#/}" )
@@ -84,7 +84,7 @@ do_queue() {
                                        ;;
                        esac
 
-                       >> "${path}.ecompress" || die
+                       : >> "${path}.ecompress" || die
                done \
                < <(printf '%s\0' "${paths[@]}" | find0 "${find_args[@]}" 
-print0 || die) \
                > "${T}"/.ecompress_had_precompressed || die

Reply via email to