code/superant.com.rwdtinkerbackwindow/removeapplet.rb in rwdshell-0.96 vs code/superant.com.rwdtinkerbackwindow/removeapplet.rb in rwdshell-0.97

- old
+ new

@@ -8,21 +8,25 @@ fd = File.open(fileName,"r") fd.each { |oneline| if count == 1 - commandline = "rm -r " + oneline - system( commandline+' > temp.output' ) + if File.exist?(oneline.chop) + FileUtils.rm_rf( oneline.chop) end + + end count = 1 } fd.close - commandline = "rm " + fileName + + FileUtils.rm_rf( fileName) - system(commandline) + @removeapplettext = "applet files removed! - restart rwd to finish uninstalling" rescue - @removeapplettext = "\n" + "error" - end # exception rescue + @removeapplettext = "\n" + "error" + + end # exception rescue end