From: Chris Koeritz Date: Thu, 4 Jun 2020 18:25:02 +0000 (-0400) Subject: need to not squash path on post-sudo side X-Git-Tag: 2.140.134~19^2~6^2~7 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=093c20778f99026a6be65ff8aa4df48dfd548b85;p=feisty_meow.git need to not squash path on post-sudo side --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index d392c234..ff9fec40 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -437,9 +437,8 @@ if [ -z "$skip_all" ]; then fi # launch sudo with just the variables we want to reach the other side. - # we take an extra step to null out the PATH, since MacOS seems to want - # to pass that even for a login shell (-i) somehow. - local varmods="PATH= " + local varmods= +# varmods+="PATH= " 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 /usr/bin/sudo $varmods "$@"