desktop shortcut
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
# got to the directory where the script is located
|
||||
Push-Location $PSScriptRoot
|
||||
|
||||
# check if winget is installed and if so, set a flag to true
|
||||
$winget = Get-Command winget -ErrorAction SilentlyContinue
|
||||
|
||||
# trust desktop-shortcut.ps1 for good measure
|
||||
Unblock-File .\desktop-shortcut.ps1
|
||||
|
||||
if (!$winget) {
|
||||
Write-Host "Error: winget is not installed." -Foreground Red
|
||||
Write-Host "This script will not work without winget." -Foreground Red
|
||||
|
||||
Reference in New Issue
Block a user