pricecharts

track prices of consumer electronics
Log | Files | Refs | README

commit c8287a78dce4132572d3db90cd61c3747dc97f29
parent 416c77d38e35c37f6eeb99b019afedc6fb162e67
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sun,  9 Nov 2014 13:48:55 -0700

shared: always use the same config file

Diffstat:
Mshared.pm | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/shared.pm b/shared.pm @@ -14,18 +14,12 @@ use POSIX; our %args; -getopts('f:np:v', \%args); +getopts('np:v', \%args); $| = 1 if ($args{v}); -if (!$args{f}) { - if (-e "etc/pricechart.cfg") { - $cfg_file = "etc/pricechart.cfg"; - } else { - $cfg_file = "/etc/pricechart.cfg"; - } -} +my $cfg_file = "/etc/pricechart.cfg"; my $parser = Config::Grammar->new({ _sections => ['vendors', 'general'], vendors => {