lib/coderunner/instance_methods.rb in coderunner-0.11.17 vs lib/coderunner/instance_methods.rb in coderunner-0.11.18
- old
+ new
@@ -1520,12 +1520,12 @@
end
@run.cancel_job
if options[:no_confirm]
delete = options[:delete]
else
- delete = Feedback.get_boolean("Do you want to delete the folder as well?")
+ delete = Feedback.get_boolean("Do you want to delete the folder (#{@run.directory}) as well?")
end
- FileUtils.rm_r(@run.directory) if delete
+ FileUtils.rm_r(@run.directory) if delete and @run.directory and not @run.directory == ""
update
print_out
end
# Needs to be fixed.