guix: use a temporary file over sponge

Remove sponge (moreutils).
This commit is contained in:
fanquake committed 2026-02-20 12:20:00 +00:00
1 parent a2fd558760
commit c86bce597a
3 files changed
+8 -35

No files matched your search

+3 -1
View File
@@ -141,6 +141,7 @@ mv --no-target-directory "$OUTDIR" "$ACTUAL_OUTDIR" \
|| ( rm -rf "$ACTUAL_OUTDIR" && exit 1 )
(
tmp="$(mktemp)"
cd /outdir-base
{
echo "$CODESIGNING_TARBALL"
@@ -149,5 +150,6 @@ mv --no-target-directory "$OUTDIR" "$ACTUAL_OUTDIR" \
} | xargs realpath --relative-base="$PWD" \
| xargs sha256sum \
| sort -k2 \
| sponge "$ACTUAL_OUTDIR"/SHA256SUMS.part
> "$tmp";
mv "$tmp" "$ACTUAL_OUTDIR"/SHA256SUMS.part
)