mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-22 05:51:30 -06: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:
parent
95243d1986
commit
48a92fedf7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user