understand /home/ward in config

This commit is contained in:
Ward Wouts 2003-07-03 14:30:40 +00:00
parent 398a661dd9
commit d2fbc70269
3 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.72 2003/06/24 19:03:42 ward Exp $
# $Dwarf: ripnews.rb,v 1.73 2003/06/24 19:35:56 ward Exp $
# $Source$
require 'date'
@ -134,6 +134,7 @@ def parse_config(default = {})
x.sub!(/^\s*/, "")
x.sub!(/\#.*$/, "")
x.sub!(/\s*$/, "")
x.gsub!(/\$\{HOME\}/, "#{ENV['HOME']}")
x.chomp
}
while i < lines.length