Fix update_sources not matching repos with "-"

The regex that was reading the names of the repositories did not allow
for the dash ("-") character. It was skipping a few schemes and
templates.
This commit is contained in:
u_quark 2020-02-23 16:33:04 +00:00
parent 944303d2b9
commit 34ad12c632
No known key found for this signature in database
GPG Key ID: F0DAB925FFBA5DAD

View File

@ -9,7 +9,7 @@
generate_sources () {
out=$1
curl "https://raw.githubusercontent.com/chriskempson/base16-${out}-source/master/list.yaml"\
| sed -nE "s~^(\w*): *(.*)~\1 \2~p"\
| sed -nE "s~^([-_[:alnum:]]+): *(.*)~\1 \2~p"\
| while read name src; do
echo "{\"key\":\"$name\",\"value\":"
nix-prefetch-git $src