add debug
This commit is contained in:
parent
7446ec1f7a
commit
8ed12af485
1 changed files with 13 additions and 4 deletions
17
functions.sh
17
functions.sh
|
@ -52,10 +52,6 @@ function sudo() {
|
||||||
local BASH
|
local BASH
|
||||||
|
|
||||||
|
|
||||||
if $SSHS ; then
|
|
||||||
logwarning "TEMPCONFIG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# SUDO=$( if [ -e /bin/sudo ]; then echo /bin/sudo; else echo /usr/bin/sudo; fi )
|
# SUDO=$( if [ -e /bin/sudo ]; then echo /bin/sudo; else echo /usr/bin/sudo; fi )
|
||||||
SUDO=$(which sudo)
|
SUDO=$(which sudo)
|
||||||
|
|
||||||
|
@ -70,6 +66,19 @@ function sudo() {
|
||||||
logwarning "SUDO: $SUDO"
|
logwarning "SUDO: $SUDO"
|
||||||
logwarning "BASH: $BASH"
|
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 \
|
$SUDO \
|
||||||
GIT_AUTHOR_EMAIL="$GIT_AUTHOR_EMAIL" \
|
GIT_AUTHOR_EMAIL="$GIT_AUTHOR_EMAIL" \
|
||||||
GIT_AUTHOR_NAME="$GIT_AUTHOR_NAME" \
|
GIT_AUTHOR_NAME="$GIT_AUTHOR_NAME" \
|
||||||
|
|
Loading…
Reference in a new issue