We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 707fe67 commit 5746b75Copy full SHA for 5746b75
lib/terraform/runner.rb
@@ -170,8 +170,7 @@ def encoded_zip_from_directory(template_path)
170
Tempfile.create(%w[opentofu-runner-payload .zip]) do |zip_file_path|
171
_log.debug("Create #{zip_file_path}")
172
Zip::File.open(zip_file_path, Zip::File::CREATE) do |zipfile|
173
- Dir.chdir(dir_path)
174
- Dir.glob("**/*").select { |fn| File.file?(fn) }.each do |file|
+ Dir.glob(File.join(dir_path, "/**/*")).select { |fn| File.file?(fn) }.each do |file|
175
_log.debug("Adding #{file}")
176
zipfile.add(file.sub("#{dir_path}/", ''), file)
177
end
0 commit comments