Merge pull request from Heavybob/default

Hotfix for /register-kill/register-kill
This commit is contained in:
BubbaGumpShrump 2025-02-03 22:17:46 -05:00 committed by GitHub
commit 18924e67d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
$TrackRver = "2.06"
$TrackRver = "2.07"
# Path to the config file
$appName = "AutoTrackR2"
@ -57,16 +57,12 @@ If (Test-Path $logFilePath) {
} else {
Write-Output "Logfile not found."
}
If ($null -ne $apiUrl){
if ($apiUrl -notlike "*/register-kill") {
if ($apiUrl -like "*/"){
$apiUrl = $apiUrl + "register-kill"
$apiUrl = $apiUrl.TrimEnd("/") + "/register-kill"
}
if ($apiUrl -notlike "*/"){
$apiUrl = $apiUrl + "/register-kill"
}
}
Write-output "PlayerName=$apiURL"
Write-output "PlayerName=$apiURL"
}
# Ship Manufacturers