Skip to content
Permalink
Browse files

Preserve User (and env) when calling sudo commands

Fixes #321
Creds to @Patistar
  • Loading branch information...
drbyte committed Apr 18, 2019
1 parent a6971e0 commit df7e46ebea36f2991c731285a2b646c965dd0781
Showing with 1 addition and 1 deletion.
  1. +1 −1 valet
2 valet
@@ -22,7 +22,7 @@ fi

if [[ "$EUID" -ne 0 ]]
then
sudo "$SOURCE" "$@"
sudo --preserve-env "$SOURCE" "$@"
exit
fi

0 comments on commit df7e46e

Please sign in to comment.
You can’t perform that action at this time.