remove export from sudo

This commit is contained in:
Jakobus Schürz 2020-07-17 00:58:45 +02:00
parent ab12293bf8
commit 0c48b14a87

View file

@ -14,13 +14,13 @@ sudo() {
local SUDO local SUDO
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 \ $SUDO \
export GIT_AUTHOR_EMAIL="$GIT_AUTHOR_EMAIL" \ GIT_AUTHOR_EMAIL="$GIT_AUTHOR_EMAIL" \
export GIT_AUTHOR_NAME="$GIT_AUTHOR_NAME" \ GIT_AUTHOR_NAME="$GIT_AUTHOR_NAME" \
export GIT_COMMITTER_EMAIL="$GIT_COMMITTER_EMAIL" \ GIT_COMMITTER_EMAIL="$GIT_COMMITTER_EMAIL" \
export GIT_COMMITTER_NAME="$GIT_COMMITTER_NAME" \ GIT_COMMITTER_NAME="$GIT_COMMITTER_NAME" \
export TMUX="$TMUX" \ TMUX="$TMUX" \
export SSHS="$SSHS" \ SSHS="$SSHS" \
export SSH_TTY="$SSH_TTY" \ SSH_TTY="$SSH_TTY" \
"$@" "$@"
} }