feed init now also initializes the feed info

This commit is contained in:
colin 2023-01-11 10:49:56 +00:00
parent 3a72295610
commit ed8059f4c4

View File

@ -29,9 +29,13 @@
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p git #!nix-shell -i bash -p git
name="$1" name="$1"
mkdir modules/data/feeds/sources/"$name" url="https://$name"
touch modules/data/feeds/sources/"$name"/default.json dir="modules/data/feeds/sources/$name"
git add modules/data/feeds/sources/"$name"/default.json json_path="$dir/default.json"
mkdir "$dir"
touch "$json_path"
git add "$json_path"
${./update.sh} "$url" "$json_path"
''; '';
} }
)) ))