Remove config.ps1 after loading the configuration

This commit is contained in:
Daniel Goldberg 2020-02-03 11:16:00 +02:00
parent c53806e789
commit 161265e4c4
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName,
$webClient.DownloadFile($config_url, $config_filename)
. ./config.ps1
"Config variables from config.ps1 imported"
Remove-Item $config_filename
# If we want monkey in current dir we need to create an empty folder for source files
if ((Join-Path $monkey_home '') -eq (Join-Path (Get-Item -Path ".\").FullName ''))