diff options
author | Bryan McLellan <btm@loftninjas.org> | 2020-04-03 16:06:18 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2020-04-03 16:06:18 -0400 |
commit | acda276c99c01c4bfdb2ad1ce411007fa5cae261 (patch) | |
tree | b34f1ee79812b8373eabeb2686683b12152623b1 | |
parent | b1cd912bebdb79ef41c7751ee607cc29c670915b (diff) | |
download | chef-acda276c99c01c4bfdb2ad1ce411007fa5cae261.tar.gz |
Use $env:temp instead of c:/
The drive root has more restrictive permissions
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-rwxr-xr-x | scripts/bk_tests/bk_win_functional.ps1 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/bk_tests/bk_win_functional.ps1 b/scripts/bk_tests/bk_win_functional.ps1 index bd262fed9c..12bb72c9ba 100755 --- 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 +Remove-Item $env:temp\rubyinstaller-devkit-2.6.5-1-x64.exe -Force echo "Closing out the layer (this can take awhile)" # Set-Item -Path Env:Path -Value to include ruby26 @@ -33,4 +33,4 @@ bundle install --jobs=3 --retry=3 --without omnibus_package docgen chefstyle echo "+++ bundle exec rake spec:functional" bundle exec rake spec:functional -exit $LASTEXITCODE
\ No newline at end of file +exit $LASTEXITCODE |