diff options
author | Jake McGinty <me@jake.su> | 2018-05-06 18:58:48 -0700 |
---|---|---|
committer | Jake McGinty <me@jake.su> | 2018-05-06 18:58:48 -0700 |
commit | df4f2b8c717d76f1653a5dca23e5bed365eca462 (patch) | |
tree | 1731ed6925e22309d856de214d2ab0fdd97f5620 | |
parent | global: small aesthetic cleanup (diff) | |
download | wireguard-rs-df4f2b8c717d76f1653a5dca23e5bed365eca462.tar.xz wireguard-rs-df4f2b8c717d76f1653a5dca23e5bed365eca462.zip |
tools: pass on exported env vars in wg-quick
-rwxr-xr-x | tools/wg-quick.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/wg-quick.bash b/tools/wg-quick.bash index 3c107f8..9942371 100755 --- a/tools/wg-quick.bash +++ b/tools/wg-quick.bash @@ -82,7 +82,7 @@ die() { } auto_su() { - [[ $UID == 0 ]] || exec sudo -p "$PROGRAM must be run as root. Please enter the password for %u to continue: " "$SELF" "${ARGS[@]}" + [[ $UID == 0 ]] || exec sudo -E -p "$PROGRAM must be run as root. Please enter the password for %u to continue: " "$SELF" "${ARGS[@]}" } add_if() { |