diff --git a/winutil-test.ps1 b/winutil-test.ps1 index a8f5209c..63c64483 100644 --- a/winutil-test.ps1 +++ b/winutil-test.ps1 @@ -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 \ No newline at end of file +$global:sync["Form"].ShowDialog() | out-null