diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-09-15 19:53:17 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-09-15 19:54:03 +0200 |
commit | d5cd80a1e8e76c19ddb2c5a00a0320330082c4ff (patch) | |
tree | 6a465f9dceda5ccdedee2f69ee26c43b31fe14c1 /scripts | |
parent | a089d55170d6ba6cf226ec761f74d78b52a2154b (diff) | |
download | upstream-d5cd80a1e8e76c19ddb2c5a00a0320330082c4ff.tar.gz upstream-d5cd80a1e8e76c19ddb2c5a00a0320330082c4ff.tar.bz2 upstream-d5cd80a1e8e76c19ddb2c5a00a0320330082c4ff.zip |
scripts/feeds: fix accepting "-" in feed type string
Fixes a syntax error in processing the type src-git-full
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/feeds | 2 |
1 files changed, 1 insertions, 1 deletions
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"; } |