tpyo
This commit is contained in:
parent
638c945a55
commit
8e822d8f94
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/usr/local/bin/ruby -w
|
||||||
|
|
||||||
# $Dwarf: ripnews.rb,v 1.65 2003/06/16 10:56:11 ward Exp $
|
# $Dwarf: ripnews.rb,v 1.66 2003/06/16 21:35:15 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
@ -346,7 +346,7 @@ def get_multi(subj, group)
|
||||||
body = fileout.path
|
body = fileout.path
|
||||||
bodybase = body.sub(/\/[^\/]*$/, "/ripnewsdecode")
|
bodybase = body.sub(/\/[^\/]*$/, "/ripnewsdecode")
|
||||||
i = 1
|
i = 1
|
||||||
while Filetest.exists?("#{bodybase}-#{i}")
|
while FileTest.exists?("#{bodybase}-#{i}")
|
||||||
i += 1
|
i += 1
|
||||||
end
|
end
|
||||||
File.move(body, "#{bodybase}-#{i}")
|
File.move(body, "#{bodybase}-#{i}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue