Use the -E flag of sudo command
Created by: cboin
If the user sets environment variables before running the setup script. It will no longer be available when running the sudo command. This can be useful for users who are behind a proxy for example.