From 169bb3d0cbbbfce3e0cec5ca99e40e6f9bb3650f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 15 Sep 2019 19:53:17 +0200 Subject: scripts/feeds: fix accepting "-" in feed type string Fixes a syntax error in processing the type src-git-full Signed-off-by: Felix Fietkau --- scripts/feeds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/feeds b/scripts/feeds index 8de4075bc7..69ab60278a 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -55,7 +55,7 @@ sub parse_file($$) { $line++; 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) { die "Syntax error in $fname, line $line\n"; } -- cgit v1.2.3