Skip to content
Snippets Groups Projects
Commit d5cd80a1 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

scripts/feeds: fix accepting "-" in feed type string


Fixes a syntax error in processing the type src-git-full

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent a089d551
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ sub parse_file($$) { ...@@ -55,7 +55,7 @@ sub parse_file($$) {
$line++; $line++;
next unless /\S/; next unless /\S/;
my ($type, $flags, $name, $urls) = m!^src-(\w+)((?:\s+--\w+(?:=\S+)?)*)\s+(\w+)(?:\s+(\S.*))?$!; my ($type, $flags, $name, $urls) = m!^src-([\w\-]+)((?:\s+--\w+(?:=\S+)?)*)\s+(\w+)(?:\s+(\S.*))?$!;
unless ($type && $name) { unless ($type && $name) {
die "Syntax error in $fname, line $line\n"; die "Syntax error in $fname, line $line\n";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment