lib/eco-rake/lib/files/decrypt.rb in eco-rake-0.1.6 vs lib/eco-rake/lib/files/decrypt.rb in eco-rake-0.2.0
- old
+ new
@@ -14,13 +14,13 @@
return warn_missing_file if target_files.empty?
status = 0
target_files.each do |file|
delete_file(gpg_to_csv_filename(file))
stat = sh_continue(decrypt_command(file, ignore_mdc_error: ignore_mdc_error))
- status = stat unless stat == 0
+ status = stat unless stat.zero?
end
delete_file(*target_files, message: "Deleting files from '#{source_folder}'") unless options[:simulate]
- exit status unless status == 0
+ exit status unless status.zero?
end
def display_target_files
puts "Source gpg files ('#{source_folder}'):"
target_files.each {|file| puts " • #{File.basename(file)}"}