Move exe / script suffixes to platform.ps1

This commit is contained in:
Steve Streeting 2020-10-06 15:53:20 +01:00
parent c2e6e1120f
commit 96a82f801f

View File

@ -5,3 +5,13 @@ if (-not $PSVersionTable.Platform) {
$global:IsLinux = $false
$global:IsMacOS = $false
}
$exeSuffix = ""
$batchSuffix = ".sh"
if ($IsWindows) {
$exeSuffix = ".exe"
}
if ($IsWindows) {
$batchSuffix = ".bat"
}