summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Xiong <arthur@vyatta.com>2010-04-28 20:53:22 +0000
committerArthur Xiong <arthur@vyatta.com>2010-04-28 20:53:22 +0000
commit576e0fed6b0e32bb92915a10f95677303eda478a (patch)
treecf2e7854d5f7d0ac884b2be6e0b342e8457fd697
parentb33a126adb4e1f9081d2146bb49b953c8e3361a1 (diff)
downloadvyatta-cfg-576e0fed6b0e32bb92915a10f95677303eda478a.tar.gz
vyatta-cfg-576e0fed6b0e32bb92915a10f95677303eda478a.zip
Update to handle none default path to the templates if provided
-rw-r--r--scripts/priority.pl1
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