feed-init: don't actually need to do the git actions

This commit is contained in:
colin 2023-01-11 10:52:10 +00:00
parent ed8059f4c4
commit 7327128493

View File

@ -26,15 +26,11 @@
passthru.initFeedScript = pkgs.writeShellScript
"init-feed"
''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p git
name="$1"
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"
'';
}