mastodon: simplify update script

This commit is contained in:
Weijia Wang 2023-09-28 20:32:06 +02:00
parent d90e8fdfb7
commit a985e3c9ff

View file

@ -78,7 +78,6 @@ trap cleanup EXIT
echo "Fetching source code $REVISION"
JSON=$(nix-prefetch-github "$OWNER" "$REPO" --rev "$REVISION" 2> $WORK_DIR/nix-prefetch-git.out)
HASH="$(echo "$JSON" | jq -r .hash)"
HASH="$(nix hash to-sri --type sha256 "$HASH")"
echo "Creating version.nix"
echo "\"$VERSION\"" | sed 's/^"v/"/' > version.nix