Skip to content

Commit

Permalink
auto update path
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Jan 15, 2025
1 parent 9aea4ec commit dc9ff09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions path/fount.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if (!(Get-Command git -ErrorAction SilentlyContinue)) {
if (Get-Command winget -ErrorAction SilentlyContinue) {
winget install --id Git.Git -e --source winget
}
$env:PATH = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
if (!(Get-Command git -ErrorAction SilentlyContinue)) {
Write-Host "Failed to install Git, please install it manually."
}
Expand Down Expand Up @@ -56,6 +57,7 @@ else {
if (!(Get-Command deno -ErrorAction SilentlyContinue)) {
Write-Host "Deno missing, auto installing..."
Invoke-RestMethod https://deno.land/install.ps1 | Invoke-Expression
$env:PATH = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
if (!(Get-Command deno -ErrorAction SilentlyContinue)) {
Write-Host "Deno missing, you cant run fount without deno"
exit 1
Expand Down

0 comments on commit dc9ff09

Please sign in to comment.