lib/osc/machete/job.rb in osc-machete-2.0.0.pre2 vs lib/osc/machete/job.rb in osc-machete-2.0.0
- old
+ new
@@ -203,10 +203,10 @@
# FIXME: removing a directory is always a dangerous action.
# I wonder if we can add more tests to make sure we don't delete
# something if the script name is munged
# recursively delete the directory after killing the job
- Pathname.new(path).rmtree if path && rmdir && File.exists?(path)
+ Pathname.new(path).rmtree if path && rmdir && File.exist?(path)
end
end
# Error class thrown when script is not available.
class ScriptMissingError < StandardError; end