From: Felix Fietkau Date: Sun, 15 Sep 2019 17:53:17 +0000 (+0200) Subject: scripts/feeds: fix accepting "-" in feed type string X-Git-Tag: v1.5.0-rc2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=36a2ec562afcad675df0b52213b077f5c57da6ab;p=librecmc%2Flibrecmc.git scripts/feeds: fix accepting "-" in feed type string Fixes a syntax error in processing the type src-git-full Signed-off-by: Felix Fietkau --- diff --git a/scripts/feeds b/scripts/feeds index 5d9a58259d..10275fbe7f 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"; }