guix: use a temporary file over sponge
Remove sponge (moreutils).
This commit is contained in:
3 files changed
+8
-35
No files matched your search
@@ -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
|
||||
)
|
||||
Reference in new issue
Block a user