From 5fa9ea74f645268c022001ab22e0253f0b8a5fbc Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Thu, 25 May 2017 13:20:50 +0100 Subject: [PATCH] tetsd --- BuildTask.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BuildTask.ps1 b/BuildTask.ps1 index 787515b50..517ae9549 100644 --- a/BuildTask.ps1 +++ b/BuildTask.ps1 @@ -5,12 +5,12 @@ param([String]$env='local') "Build Version: " + $env:APPVEYOR_BUILD_VERSION | Write-Output; "Base Path: " + $env:APPVEYOR_BUILD_FOLDER | Write-Output; -$appSettingsPath = $basePath + '\src\Ombi\appsettings.json' +$appSettingsPath = $env:APPVEYOR_BUILD_FOLDER + '\src\Ombi\appsettings.json' $appSettings = Get-Content $appSettingsPath -raw $appSettings = $appSettings.Replace("{{VERSIONNUMBER}}",$ver); Set-Content -Path $appSettingsPath -Value $appSettings -$configPath = $basePath + '\src\Ombi\wwwroot\app\config.ts'; +$configPath = $env:APPVEYOR_BUILD_FOLDER + '\src\Ombi\wwwroot\app\config.ts'; $config = Get-Content $configPath -raw $config = $config.Replace("{{ENVIRONMENT}}",$env);