feed init now also initializes the feed info
This commit is contained in:
parent
3a72295610
commit
ed8059f4c4
|
@ -29,9 +29,13 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p git
|
||||
name="$1"
|
||||
mkdir modules/data/feeds/sources/"$name"
|
||||
touch modules/data/feeds/sources/"$name"/default.json
|
||||
git add modules/data/feeds/sources/"$name"/default.json
|
||||
url="https://$name"
|
||||
dir="modules/data/feeds/sources/$name"
|
||||
json_path="$dir/default.json"
|
||||
mkdir "$dir"
|
||||
touch "$json_path"
|
||||
git add "$json_path"
|
||||
${./update.sh} "$url" "$json_path"
|
||||
'';
|
||||
}
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue
Block a user