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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user