UEScripts/inc/platform.ps1
2020-10-06 15:53:20 +01:00

18 lines
340 B
PowerShell

# Simplify platform checks for Powershell < 6
if (-not $PSVersionTable.Platform) {
# This is Windows-only powershell
$global:IsWindows = $true
$global:IsLinux = $false
$global:IsMacOS = $false
}
$exeSuffix = ""
$batchSuffix = ".sh"
if ($IsWindows) {
$exeSuffix = ".exe"
}
if ($IsWindows) {
$batchSuffix = ".bat"
}