Fix api suffix handling

This commit is contained in:
BubbaGumpShrump 2025-01-13 21:21:25 -05:00
parent cfd14fc3bd
commit 108d7c254e

View file

@ -59,7 +59,12 @@ If (Test-Path $logFilePath) {
}
If ($null -ne $apiUrl){
if ($apiUrl -notlike "*/register-kill") {
$apiUrl = $apiUrl + "/register-kill"
if ($apiUrl -like "*/"){
$apiUrl = $apiUrl + "register-kill"
}
if ($apiUrl -notlike "*/"){
$apiUrl = $apiUrl + "/register-kill"
}
}
Write-output "PlayerName=$apiURL"
}