Skip to content

Commit 51056b7

Browse files
committed
Improve check for if OS is Windows in integrated tests
1 parent 8e4c08e commit 51056b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/scripts/integration/Run-IntegrationTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ $iterations = 2
5555
# The following test should be run only for Windows, reason being that the non-Windows version:
5656
# - Does not take in arguments, instead compiles all plugins within the scripting directory
5757
# - Displays all the output using 'less' at the end of the compilation, thus is limited to interactive use
58-
if ($env:OS) {
58+
if ($env:OS -eq 'Windows_NT') {
5959
$cmdArgs = @{
6060
File = "$PSScriptRoot\..\..\mod\amxmodx\addons\amxmodx\scripting\plugin1.sma"
6161
Force = $true

0 commit comments

Comments
 (0)