mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-01 10:32:35 -05: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(@{})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user