summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/util/zip_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/axlsx/util/zip_command.rb')
-rw-r--r--lib/axlsx/util/zip_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/util/zip_command.rb b/lib/axlsx/util/zip_command.rb
index 44e06af5..77cc44c7 100644
--- a/lib/axlsx/util/zip_command.rb
+++ b/lib/axlsx/util/zip_command.rb
@@ -63,7 +63,7 @@ module Axlsx
escaped_dir = Shellwords.shellescape(@dir)
command = "cd #{escaped_dir} && #{@zip_command} #{output} #{inputs}"
stdout_and_stderr, status = Open3.capture2e(command)
- if !status.success?
+ unless status.success?
raise ZipError, stdout_and_stderr
end
end