#! /usr/bin/ruby

require 'parseconfig'

config = ParseConfig.new(ARGV[0])
template_file = config['template_file']
unless File.file?(template_file)
	puts "ERROR: Check the template_file configuration variable is correct (points to a valid template's filename) in #{ARGV[0]}"
end


#! /usr/bin/ruby

require 'parseconfig'

config = ParseConfig.new(ARGV[0])
template_file = config['template_file']
unless File.file?(template_file)
	puts "ERROR: Check the template_file configuration variable is correct (points to a valid template's filename) in #{ARGV[0]}"
	abort
end


Abort the script with an error signal if the template file doesn't seem to exist
Abort the script with an error signal if the template file doesn't seem to exist
