Skip to content

Commit f185e69

Browse files
authored
re-fix #untar to correctly create dir (#1021)
I got a false positive when testing this locally for #1018, the `mkdir` flag is needed for both `importer_unzip_path` invocations
1 parent 3b6bed0 commit f185e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/parsers/bulkrax/application_parser.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def unzip(file_to_unzip)
440440
end
441441

442442
def untar(file_to_untar)
443-
Dir.mkdir(importer_unzip_path) unless File.directory?(importer_unzip_path(mkdir: true))
443+
Dir.mkdir(importer_unzip_path(mkdir: true)) unless File.directory?(importer_unzip_path(mkdir: true))
444444
command = "tar -xzf #{Shellwords.escape(file_to_untar)} -C #{Shellwords.escape(importer_unzip_path)}"
445445
result = system(command)
446446
raise "Failed to extract #{file_to_untar}" unless result

0 commit comments

Comments
 (0)