commit: 8f8afbe9a11ca7a57e5ac4d847fb2ba4ca51f338 Author: Kerin Millar <kfm <AT> plushkava <DOT> net> AuthorDate: Sun Jul 20 06:18:49 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jul 22 22:30:55 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8f8afbe9
isolated-functions.sh: specify commands for standalone redirections This is just to satisfy the SC2188 policy of shellcheck. 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/isolated-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index fbb4c6ced4..08e7a326fb 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -183,7 +183,7 @@ die() { for x in ${EBUILD_DEATH_HOOKS}; do ${x} "$@" done >&2 - > "${PORTAGE_BUILDDIR}/.die_hooks" + : > "${PORTAGE_BUILDDIR}/.die_hooks" fi if [[ -n ${PORTAGE_LOG_FILE} ]] ; then @@ -209,7 +209,7 @@ die() { eerror "Working directory: '$(pwd)'" [[ -n ${S} ]] && eerror "S: '${S}'" - [[ -n ${PORTAGE_EBUILD_EXIT_FILE} ]] && > "${PORTAGE_EBUILD_EXIT_FILE}" + [[ -n ${PORTAGE_EBUILD_EXIT_FILE} ]] && : > "${PORTAGE_EBUILD_EXIT_FILE}" [[ -n ${PORTAGE_IPC_DAEMON} ]] && "${PORTAGE_BIN_PATH}"/ebuild-ipc exit 1 # subshell die support
