remove export from sudo
This commit is contained in:
parent
ab12293bf8
commit
0c48b14a87
1 changed files with 7 additions and 7 deletions
14
functions.sh
14
functions.sh
|
@ -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" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue