1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

fix NSIS when branches contain slashes

This commit is contained in:
Ted John
2016-05-04 22:07:48 +01:00
parent e29c2555c3
commit 3deb2ef363
2 changed files with 5 additions and 5 deletions

View File

@@ -18,17 +18,17 @@ param (
[switch]$Symbols = $false
)
if ($GitTag -eq "")
if (-not $GitTag)
{
if ($GitBranch -eq $null)
if (-not $GitBranch)
{
$GitBranch = (git rev-parse --abbrev-ref HEAD)
}
if ($GitCommitSha1 -eq $null)
if (-not $GitCommitSha1)
{
$GitCommitSha1 = (git rev-parse HEAD)
}
if ($GitCommitSha1Short -eq $null)
if (-not $GitCommitSha1Short)
{
$GitCommitSha1Short = (git rev-parse --short HEAD)
}