From bcb7773007894ac2f85fe2a0b47faf14c7b474ad Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 13 May 2026 20:51:54 -0500 Subject: [PATCH] ci(updateserver): changes to actually add the new env stuff --- scripts/updateServer.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/updateServer.ps1 b/scripts/updateServer.ps1 index ab06213..d76666b 100644 --- a/scripts/updateServer.ps1 +++ b/scripts/updateServer.ps1 @@ -87,7 +87,15 @@ function Update-Server { param ($Server, $Token, $Destination, $BuildFile) function Fix-Env { - $envFile = ".env" + + param( + [Parameter(Mandatory = $true)] + [string]$Path + ) + + $envFile = Join-Path $Path ".env" + + Write-Host "Checking env file: $envFile" if (-not (Test-Path $envFile)) { Write-Host ".env not found, creating..." @@ -197,7 +205,7 @@ function Update-Server { Write-Host "Install/update completed." # update the env to include the new and missing things silly people and wanting things fixed :( - Fix-Env #-Path $LocalPath + Fix-Env -Path $LocalPath # do the migrations # Push-Location $LocalPath