Don't set environment vars in shell script

This commit is contained in:
Reinier Criel 2025-11-19 16:20:55 -08:00
parent a7fc215354
commit 919a12b5a6
2 changed files with 8 additions and 11 deletions

View file

@ -36,6 +36,7 @@ echo "Removing proxy environment variables..."
sudo -u "${ACTUAL_USER}" launchctl unsetenv HTTPS_PROXY 2>/dev/null || true
sudo -u "${ACTUAL_USER}" launchctl unsetenv GLOBAL_AGENT_HTTP_PROXY 2>/dev/null || true
sudo -u "${ACTUAL_USER}" launchctl unsetenv NODE_EXTRA_CA_CERTS 2>/dev/null || true
sudo -u "${ACTUAL_USER}" launchctl unsetenv SAFE_CHAIN_CERT_DIR 2>/dev/null || true
# Remove binary
rm -f /usr/local/bin/safe-chain