code/superant.com.rwdtinkerbackwindow/removeapplet.rb in rwdschedule-0.93 vs code/superant.com.rwdtinkerbackwindow/removeapplet.rb in rwdschedule-0.94
- old
+ new
@@ -1,28 +1,28 @@
- def removeapplet
- require 'fileutils'
- nametext = "%s" % [@a_removeapplet]
-
- begin # exception trapped block
- fileName = "installed/" + nametext + ".inf"
- count = 0
- fd = File.open(fileName,"r")
-
-
- fd.each { |oneline|
- if count == 1
- commandline = "rm -r " + oneline
- system( commandline+' > temp.output' )
- end
- count = 1
- }
- fd.close
- commandline = "rm " + fileName
-
- system(commandline)
- @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
-
- rescue
- @removeapplettext = "\n" + "error"
- end # exception rescue
-
- end
+ def removeapplet
+ require 'fileutils'
+ nametext = "%s" % [@a_removeapplet]
+
+ begin # exception trapped block
+ fileName = "installed/" + nametext + ".inf"
+ count = 0
+ fd = File.open(fileName,"r")
+
+
+ fd.each { |oneline|
+ if count == 1
+ commandline = "rm -r " + oneline
+ system( commandline+' > temp.output' )
+ end
+ count = 1
+ }
+ fd.close
+ commandline = "rm " + fileName
+
+ system(commandline)
+ @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
+
+ rescue
+ @removeapplettext = "\n" + "error"
+ end # exception rescue
+
+ end