Merge pull request #257881 from wegank/mastodon-update-script

mastodon: simplify update script
This commit is contained in:
Weijia Wang 2023-09-28 22:19:05 +02:00 committed by GitHub
commit a6fd03427d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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