add debug

This commit is contained in:
Jakobus Schürz 2022-12-24 06:32:57 +01:00
parent 7446ec1f7a
commit 8ed12af485

View file

@ -52,10 +52,6 @@ function sudo() {
local BASH
if $SSHS ; then
logwarning "TEMPCONFIG"
fi
# SUDO=$( if [ -e /bin/sudo ]; then echo /bin/sudo; else echo /usr/bin/sudo; fi )
SUDO=$(which sudo)
@ -70,6 +66,19 @@ function sudo() {
logwarning "SUDO: $SUDO"
logwarning "BASH: $BASH"
logwarning $SUDO \
GIT_AUTHOR_EMAIL="$GIT_AUTHOR_EMAIL" \
GIT_AUTHOR_NAME="$GIT_AUTHOR_NAME" \
GIT_COMMITTER_EMAIL="$GIT_COMMITTER_EMAIL" \
GIT_COMMITTER_NAME="$GIT_COMMITTER_NAME" \
TMUX="$TMUX" \
SSHS="$SSHS" \
P11M="$P11M" \
SSH_TTY="$SSH_TTY" \
SSH_AUTH_SOCK="$SSH_AUTH_SOCK" \
http_proxy="$http_proxy" \
$BASH \
"$@"
$SUDO \
GIT_AUTHOR_EMAIL="$GIT_AUTHOR_EMAIL" \
GIT_AUTHOR_NAME="$GIT_AUTHOR_NAME" \