Write only filename to sha512 files for tarballs

This commit is contained in:
Mikhail f. Shiryaev 2023-10-17 14:55:57 +02:00
parent e4e1aac154
commit af31224ecd
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -112,7 +112,8 @@ EOF
tar -czf "$TARBALL" -C "$OUTPUT_DIR" "$PKG_DIR"
fi
sha512sum "$TARBALL" > "$TARBALL".sha512
# Cut the $OUTPUT_DIR/ from the sha512sum output to make it universal
sha512sum "$TARBALL" | sed "s|$OUTPUT_DIR/||" > "$TARBALL".sha512
rm -r "$PKG_PATH"
}