-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscoop_check.ps1
25 lines (21 loc) · 1.86 KB
/
scoop_check.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Write-Output "
██████╗ ██╗ ██╗███████╗ ██████╗██╗ ██╗ ███████╗ ██████╗ ██████╗ ██████╗ ██████╗
██╔════╝██║ ██║██╔════╝██╔════╝██║ ██╔╝ ██╔════╝██╔════╝██╔═══██╗██╔═══██╗██╔══██╗
██║ ███████║█████╗ ██║ █████╔╝ ███████╗██║ ██║ ██║██║ ██║██████╔╝
██║ ██╔══██║██╔══╝ ██║ ██╔═██╗ ╚════██║██║ ██║ ██║██║ ██║██╔═══╝
╚██████╗██║ ██║███████╗╚██████╗██║ ██╗ ███████║╚██████╗╚██████╔╝╚██████╔╝██║
╚═════╝╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝
"
# Check if Scoop is installed
$scoopCheck = (Get-Command "scoop" -ErrorAction SilentlyContinue)
if ($null -eq $scoopCheck) {
Write-Host "Scoop is not installed. Installing Scoop..."
Invoke-RestMethod get.scoop.sh | Invoke-Expression
# This command installs Scoop if it's not found
Write-Host "Scoop installation completed."
} else {
Write-Host "Scoop is already installed."
}
# Install Scoop Libiary
scoop bucket add main
scoop bucket add extras