Skip to content

Commit

Permalink
preserve sudo envs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyrybeyro committed Jun 19, 2024
1 parent be3f864 commit 069237b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ PreCheck()
# self-promoting script to sudo
# recursively call the script with sudo
# hence no needing sudo before the command
exec sudo "$0" "${args[@]}"
exec sudo -sE "$0" "${args[@]}"
else
# This script might need a user with sudo privileges
command -v sudo &>/dev/null || echo "you might want to install sudo" >&2
Expand Down

0 comments on commit 069237b

Please sign in to comment.