diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-20 09:38:45 +0600 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-21 14:47:47 +0600 |
commit | 93bfe4dcfb8b7b8c80ca31491c1a1f3e1d85d16f (patch) | |
tree | 10c7144ac230081e1d79f6dbbce0cc061863aacb | |
parent | 344b3e9fab602232d5cb177a9f5e48479291f403 (diff) | |
download | chef-93bfe4dcfb8b7b8c80ca31491c1a1f3e1d85d16f.tar.gz |
Updated the script to test-path first
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | .github/workflows/kitchen.yml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml index 23e31c65bb..b2cea16909 100644 --- a/.github/workflows/kitchen.yml +++ b/.github/workflows/kitchen.yml @@ -33,10 +33,11 @@ jobs: # The chef-client installer does not put the file 'ansidecl.h' down in the correct location # This leads to failures during testing. Moving that file to its correct position here. - # Another example of 'bad' that needs to be corrected - # $output = gci -path C:\opscode\ -file ansidecl.h -Recurse - # $target_path = $($output.Directory.Parent.FullName + "\x86_64-w64-mingw32\include") - # Move-Item -Path $output.FullName -Destination $target_path + If(-not(Test-Path C:\opscode\chef\embedded\msys64\mingw64\x86_64-w64-mingw32\include\ansidecl.h)){ + $output = gci -path C:\opscode\ -file ansidecl.h -Recurse + $target_path = $($output.Directory.Parent.FullName + "\x86_64-w64-mingw32\include") + Copy-Item -Path $output.FullName -Destination $target_path + } gem install appbundler appbundle-updater --no-doc If ($lastexitcode -ne 0) { Exit $lastexitcode } |