diff options
author | Arthur Xiong <arthur@vyatta.com> | 2010-04-28 20:53:22 +0000 |
---|---|---|
committer | Arthur Xiong <arthur@vyatta.com> | 2010-04-28 20:53:22 +0000 |
commit | 576e0fed6b0e32bb92915a10f95677303eda478a (patch) | |
tree | cf2e7854d5f7d0ac884b2be6e0b342e8457fd697 /scripts/priority.pl | |
parent | b33a126adb4e1f9081d2146bb49b953c8e3361a1 (diff) | |
download | vyatta-cfg-576e0fed6b0e32bb92915a10f95677303eda478a.tar.gz vyatta-cfg-576e0fed6b0e32bb92915a10f95677303eda478a.zip |
Update to handle none default path to the templates if provided
Diffstat (limited to 'scripts/priority.pl')
-rw-r--r-- | scripts/priority.pl | 1 |
1 files changed, 1 insertions, 0 deletions
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 |