lib/pessimize/file_manager.rb in pessimize-0.1.0 vs lib/pessimize/file_manager.rb in pessimize-0.2.0
- old
+ new
@@ -30,10 +30,10 @@
private
def backup_file!(file)
cmd = "cp #{file} #{file}.backup"
puts " + #{cmd}"
- system cmd
+ `#{cmd}`
$?.exitstatus == 0
end
end
end