mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Don't try to git tag if not running git
This commit is contained in:
parent
63e3113331
commit
0f0e6f3d56
@ -205,7 +205,7 @@ try {
|
|||||||
if ($forcetag) {
|
if ($forcetag) {
|
||||||
$forcearg = "-f"
|
$forcearg = "-f"
|
||||||
}
|
}
|
||||||
if (-not $test -and -not $dryrun) {
|
if (-not $test -and -not $dryrun -and $isGit) {
|
||||||
if ($src -ne ".") { Push-Location $src }
|
if ($src -ne ".") { Push-Location $src }
|
||||||
git tag $forcearg -a $versionNumber -m "Automated release tag"
|
git tag $forcearg -a $versionNumber -m "Automated release tag"
|
||||||
if ($LASTEXITCODE -ne 0) { Exit $LASTEXITCODE }
|
if ($LASTEXITCODE -ne 0) { Exit $LASTEXITCODE }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user