projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added OLD_HOME variable pointing to HOME before sudo
[feisty_meow.git]
/
scripts
/
core
/
functions.sh
diff --git
a/scripts/core/functions.sh
b/scripts/core/functions.sh
index 8c9c0b2aceaa64699457f5ba2ace684dbddb6fe9..8ad72ccf0aae36683981105e1c14383bf042c0a3 100644
(file)
--- a/
scripts/core/functions.sh
+++ b/
scripts/core/functions.sh
@@
-466,9
+466,9
@@
if [ -z "$skip_all" ]; then
# launch sudo with just the variables we want to reach the other side.
local varmods=
# launch sudo with just the variables we want to reach the other side.
local varmods=
-
# varmods+="PATH=
"
+
varmods+="OLD_HOME=$HOME
"
if [ ! -z "$IMPORTED_XAUTH" ]; then varmods+="IMPORTED_XAUTH=$IMPORTED_XAUTH "; fi
if [ ! -z "$IMPORTED_XAUTH" ]; then varmods+="IMPORTED_XAUTH=$IMPORTED_XAUTH "; fi
- if [ ! -z "$SSH_AUTH_SOCK" ]; then varmods+="SSH_AUTH_SOCK=$SSH_AUTH_SOCK"; fi
+ if [ ! -z "$SSH_AUTH_SOCK" ]; then varmods+="SSH_AUTH_SOCK=$SSH_AUTH_SOCK
"; fi
/usr/bin/sudo $varmods "$@"
retval=$?
/usr/bin/sudo $varmods "$@"
retval=$?