Skip to content

Commit

Permalink
Enable bash -x if GETUTO_DEBUG is set
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
Flowdalic committed Feb 20, 2024
1 parent c8283bd commit aa6e531
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions getuto
Original file line number Diff line number Diff line change
Expand Up @@ -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 ; }
Expand Down

0 comments on commit aa6e531

Please sign in to comment.