diff options
Diffstat (limited to 'lib/safe_zip/extract.rb')
-rw-r--r-- | lib/safe_zip/extract.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/safe_zip/extract.rb b/lib/safe_zip/extract.rb index 679c021c730..9abb53d4cdb 100644 --- a/lib/safe_zip/extract.rb +++ b/lib/safe_zip/extract.rb @@ -43,7 +43,7 @@ module SafeZip extracted += extract_all_entries(zip_archive, params, zip_archive.lazy.reject(&:directory?).reject(&:file?)) - raise NoMatchingError, 'No entries extracted' unless extracted > 0 + raise NoMatchingError, "No entries extracted" unless extracted > 0 end end @@ -57,16 +57,16 @@ module SafeZip def legacy_unsafe_extract_with_system_zip(params) # Requires UnZip at least 6.00 Info-ZIP. # -n never overwrite existing files - args = %W(unzip -n -qq #{archive_path}) + args = %W[unzip -n -qq #{archive_path}] # We add * to end of directory, because we want to extract directory and all subdirectories args += params.directories_wildcard # Target directory where we extract - args += %W(-d #{params.extract_path}) + args += %W[-d #{params.extract_path}] unless system(*args) - raise Error, 'archive failed to extract' + raise Error, "archive failed to extract" end end end |