Skip to content

Commit

Permalink
Reload environment variables before attempting to install scoop (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Dec 16, 2022
1 parent 2858886 commit 7beb961
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wingetui/resources/install_scoop.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Write-Output "Installing scoop..."

iex "& {$(irm get.scoop.sh)} -RunAsAdmin"

$Env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")

If (-Not (Get-Command git -ErrorAction SilentlyContinue)) {
Write-Output "Installing git..."
scoop install git
Expand Down

0 comments on commit 7beb961

Please sign in to comment.