diff options
author | Bryan McLellan <btm@loftninjas.org> | 2020-04-03 16:06:18 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2020-04-03 17:35:21 -0400 |
commit | 697dd67554a8eb7cb79d840d4e86fbe5ebf90d9c (patch) | |
tree | c9aeaa7fbbee7cfbb6e257fcce07ffec1ad8a75f | |
parent | b38fd9279841c61e09926a85f9ba90b3313cdd0c (diff) | |
download | chef-btm/fix-windows-func-test.tar.gz |
Use $env:temp instead of c:/btm/fix-windows-func-test
The drive root has more restrictive permissions
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-rw-r--r-- | scripts/bk_tests/bk_win_functional.ps1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/bk_tests/bk_win_functional.ps1 b/scripts/bk_tests/bk_win_functional.ps1 index bcb6b116c8..6033812388 100644 --- a/scripts/bk_tests/bk_win_functional.ps1 +++ b/scripts/bk_tests/bk_win_functional.ps1 @@ -9,13 +9,13 @@ echo "--- install ruby + devkit" $ErrorActionPreference = 'Stop' echo "Downloading Ruby + DevKit" -aws s3 cp s3://public-cd-buildkite-cache/rubyinstaller-devkit-2.6.5-1-x64.exe c:/rubyinstaller-devkit-2.6.5-1-x64.exe +aws s3 cp s3://public-cd-buildkite-cache/rubyinstaller-devkit-2.6.5-1-x64.exe $env:temp/rubyinstaller-devkit-2.6.5-1-x64.exe echo "Installing Ruby + DevKit" -Start-Process c:\rubyinstaller-devkit-2.6.5-1-x64.exe -ArgumentList '/verysilent /dir=C:\\ruby26' -Wait +Start-Process $env:temp\rubyinstaller-devkit-2.6.5-1-x64.exe -ArgumentList '/verysilent /dir=C:\\ruby26' -Wait echo "Cleaning up installation" -Remove-Item c:\rubyinstaller-devkit-2.6.5-1-x64.exe -Force -ErrorAction SilentlyContinue +Remove-Item $env:temp\rubyinstaller-devkit-2.6.5-1-x64.exe -Force -ErrorAction SilentlyContinue echo "Closing out the layer (this can take awhile)" # Set-Item -Path Env:Path -Value to include ruby26 |