From 96a82f801f47d96f1e562f8e8048d81abc711021 Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Tue, 6 Oct 2020 15:53:20 +0100 Subject: [PATCH] Move exe / script suffixes to platform.ps1 --- inc/platform.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/platform.ps1 b/inc/platform.ps1 index 68eeec6..8f2e988 100644 --- a/inc/platform.ps1 +++ b/inc/platform.ps1 @@ -4,4 +4,14 @@ if (-not $PSVersionTable.Platform) { $global:IsWindows = $true $global:IsLinux = $false $global:IsMacOS = $false -} \ No newline at end of file +} + + +$exeSuffix = "" +$batchSuffix = ".sh" +if ($IsWindows) { + $exeSuffix = ".exe" +} +if ($IsWindows) { + $batchSuffix = ".bat" +}