Add a check for $isLinux (#133)

This is a very simple if statement, I don't think there's much to explain

```PowerShell
if ($IsLinux){ # PowerShell on Linux has that read-only bool variable set to $true
   Write-Host "This utility is exclusively designed for Windows"
   return
}
```
This commit is contained in:
Couleur 2022-09-15 17:47:22 +02:00 committed by GitHub
parent 95243d1986
commit 48a92fedf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,11 @@
Version 0.0.1
#>
if ($IsLinux){ # PowerShell on Linux has that read-only bool variable set to $true
Write-Host "This utility is exclusively designed for Windows"
return
}
#region Variables
$global:sync = [Hashtable]::Synchronized(@{})
@ -1321,4 +1326,4 @@ If($env:args){
}
# Create Form
$global:sync["Form"].ShowDialog() | out-null
$global:sync["Form"].ShowDialog() | out-null