Skip to content

Commit

Permalink
Only install Scoop if not already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoobdude authored Nov 4, 2024
1 parent 1d01749 commit 6ead12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ try {
Remove-Item -Path .\config.json

# Install Scoop
try {
if (!(Get-Command "scoop" -errorAction SilentlyContinue)){
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
} catch {
} else {
Write-Output "Skipping scoop install"
}

Expand Down

0 comments on commit 6ead12c

Please sign in to comment.