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:
parent
944303d2b9
commit
34ad12c632
@ -9,7 +9,7 @@
|
|||||||
generate_sources () {
|
generate_sources () {
|
||||||
out=$1
|
out=$1
|
||||||
curl "https://raw.githubusercontent.com/chriskempson/base16-${out}-source/master/list.yaml"\
|
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
|
| while read name src; do
|
||||||
echo "{\"key\":\"$name\",\"value\":"
|
echo "{\"key\":\"$name\",\"value\":"
|
||||||
nix-prefetch-git $src
|
nix-prefetch-git $src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user