add file exists check

This commit is contained in:
John Bintz 2009-03-31 21:12:40 -04:00
parent 1a89bd05e3
commit 66e8b2ac2f

View File

@ -416,6 +416,11 @@ if !ARGV[0]
exit 0
end
if !File.exists?(ARGV[0])
puts "#{ARGV[0]} doesn't exist!"
exit 1
end
config = YAML::load(File.open(ARGV[0], "r"))
global = config['Global']