aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/wg-quick.bash2
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() {