We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#untar
1 parent 3b6bed0 commit f185e69Copy full SHA for f185e69
app/parsers/bulkrax/application_parser.rb
@@ -440,7 +440,7 @@ def unzip(file_to_unzip)
440
end
441
442
def untar(file_to_untar)
443
- Dir.mkdir(importer_unzip_path) unless File.directory?(importer_unzip_path(mkdir: true))
+ Dir.mkdir(importer_unzip_path(mkdir: true)) unless File.directory?(importer_unzip_path(mkdir: true))
444
command = "tar -xzf #{Shellwords.escape(file_to_untar)} -C #{Shellwords.escape(importer_unzip_path)}"
445
result = system(command)
446
raise "Failed to extract #{file_to_untar}" unless result
0 commit comments