mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-05 23:40:10 +00:00
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:
@@ -5,6 +5,11 @@
|
|||||||
Version 0.0.1
|
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
|
#region Variables
|
||||||
$global:sync = [Hashtable]::Synchronized(@{})
|
$global:sync = [Hashtable]::Synchronized(@{})
|
||||||
|
|
||||||
@@ -1321,4 +1326,4 @@ If($env:args){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Create Form
|
# Create Form
|
||||||
$global:sync["Form"].ShowDialog() | out-null
|
$global:sync["Form"].ShowDialog() | out-null
|
||||||
|
|||||||
Reference in New Issue
Block a user