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
#!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"
'';
}
))