Skip to content

Commit

Permalink
Merge pull request #304 from barkingfoodog/windows-script-file
Browse files Browse the repository at this point in the history
Fail fast on Windows when setting up dependency scripts
  • Loading branch information
s0undt3ch authored Jun 12, 2020
2 parents 8359b43 + b027377 commit d234131
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/kitchen/provisioner/salt_solo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,13 @@ def prepare_grains
end

def prepare_dependencies
# Dependency scripts are bash scripts only
# Copying them clobbers the kitchen temp directory
# with a file named `kitchen`. If adding Windows
# support for dependencies, relocate into a
# sub-directory
return if windows_os?

# upload scripts
sandbox_scripts_path = File.join(sandbox_path, config[:salt_config], 'scripts')
info("Preparing scripts into #{config[:salt_config]}/scripts")
Expand Down

0 comments on commit d234131

Please sign in to comment.