Skip to content

Commit 8aa22b2

Browse files
adding -E to preserve env variables
1 parent b341562 commit 8aa22b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/powershell/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ if [ -n "$POWERSHELL_PROFILE_URL" ]; then
385385
echo "Downloading PowerShell Profile from: $POWERSHELL_PROFILE_URL"
386386
# Get profile path from currently installed pwsh
387387
profilePath=$(pwsh -noni -c '$PROFILE.AllUsersAllHosts')
388-
curl -sSL -o "$profilePath" "$POWERSHELL_PROFILE_URL"
388+
sudo -E curl -sSL -o "$profilePath" "$POWERSHELL_PROFILE_URL"
389389
fi
390390

391391
# Clean up

0 commit comments

Comments
 (0)