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