mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -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
|
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(@{})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user