From 576e0fed6b0e32bb92915a10f95677303eda478a Mon Sep 17 00:00:00 2001 From: Arthur Xiong Date: Wed, 28 Apr 2010 20:53:22 +0000 Subject: Update to handle none default path to the templates if provided --- scripts/priority.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/priority.pl b/scripts/priority.pl index 0cadbc3..412b600 100644 --- a/scripts/priority.pl +++ b/scripts/priority.pl @@ -59,6 +59,7 @@ sub wanted { # main program my $cfgdir = '/opt/vyatta/share/vyatta-cfg/templates'; +$cfgdir = $ARGV[0] if $#ARGV == 0; die "$cfgdir does not exist!" unless -d $cfgdir; # walk config file tree -- cgit v1.2.3