diff options
author | Arthur Xiong <arthur@vyatta.com> | 2010-04-28 20:49:04 +0000 |
---|---|---|
committer | Arthur Xiong <arthur@vyatta.com> | 2010-04-28 20:49:04 +0000 |
commit | b33a126adb4e1f9081d2146bb49b953c8e3361a1 (patch) | |
tree | 79848f0956729b1f5449e717595124c325c6d766 /scripts | |
parent | 31746b6aeecf4d7cdbe3d4b9cf797d089e48fa25 (diff) | |
download | vyatta-cfg-b33a126adb4e1f9081d2146bb49b953c8e3361a1.tar.gz vyatta-cfg-b33a126adb4e1f9081d2146bb49b953c8e3361a1.zip |
Update regex to handle priority line without space(s) and comment in the
end
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/update-priority.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update-priority.pl b/scripts/update-priority.pl index e70688a..84b4933 100644 --- a/scripts/update-priority.pl +++ b/scripts/update-priority.pl @@ -39,7 +39,7 @@ open my $pf, '<', $priority_file or die "$priority_file can't be opened"; while (<$pf>) { chomp; next if /^#.*/; - die "Syntax Error \"$_\"" unless /^(\d+)\s+(\S+)\s+(|#.*)$/; + die "Syntax Error \"$_\"" unless /^(\d+)\s+(\S+)(|\s+|\s+#.*)$/; $priority = $1; $path = $2; $comment = $3; |