wel even slim met ${HOME} omgaan
This commit is contained in:
parent
70c130d89a
commit
c23409e853
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/usr/local/bin/ruby -w
|
||||||
|
|
||||||
# $Dwarf: ripnews.rb,v 1.85 2004/10/14 11:47:37 ward Exp $
|
# $Dwarf: ripnews.rb,v 1.86 2005/01/28 20:06:45 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -193,6 +193,7 @@ def parse_config(default = {})
|
||||||
config = {}
|
config = {}
|
||||||
|
|
||||||
lines.collect!{|x|
|
lines.collect!{|x|
|
||||||
|
x.gsub!(/\$\{HOME\}/, "#{ENV['HOME']}")
|
||||||
if x =~ /^\s*INCLUDEFILE=(.*?)\s*$/i
|
if x =~ /^\s*INCLUDEFILE=(.*?)\s*$/i
|
||||||
x = File.new($1).readlines
|
x = File.new($1).readlines
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue