From aa6e531f988d71e42538a048916af73cd91f2ee9 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 20 Feb 2024 09:02:28 +0100 Subject: [PATCH] Enable bash -x if GETUTO_DEBUG is set Support enabling verbose bash output if GETUTO_DEBUG is set. Due getuto often being called via portage it is not trivial to get debug output. Especially since setting PORTAGE_TRUST_HELPER="bash -x /usr/bin/getuto" fails with !!! Portage trust helper bash -x /usr/bin/getuto for binary packages not found !!! Continuing, but did you install app-portage/getuto? --- getuto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/getuto b/getuto index ced6691..937f959 100755 --- a/getuto +++ b/getuto @@ -18,6 +18,8 @@ # sec-keys/openpgp-keys-gentoo-release # sys-apps/gentoo-functions +[[ ${GETUTO_DEBUG} ]] && set -x + QUIET='1' [[ $(whoami) == 'root' ]] || { echo "${0} must be run as root!" ; exit 100 ; }