Skip to content

Commit c1698ef

Browse files
committed
Merge branch 'dev'
2 parents cf11918 + 8e4c08e commit c1698ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Compile-SourceScript/Public/Compile-SourceScript.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Compile-SourceScript {
3131
param(
3232
[Parameter(Mandatory=$True)]
3333
[ValidateNotNullOrEmpty()]
34-
$File
34+
[string]$File
3535
,
3636
[Parameter(Mandatory=$False)]
3737
[switch]$SkipWrapper
@@ -94,7 +94,7 @@ function Compile-SourceScript {
9494
}
9595
}
9696
}
97-
$COMPILER_NAME = if ($env:OS) {
97+
$COMPILER_NAME = if ($env:OS -eq 'Windows_NT') {
9898
if ($PSBoundParameters['SkipWrapper']) { $MOD[$MOD_NAME]['compiler']['windows']['bin'] }
9999
else { $MOD[$MOD_NAME]['compiler']['windows']['wrapper'] }
100100
}else {

0 commit comments

Comments
 (0)