From f3df719ec0949a605d95cfa174f8ad581d25408f Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 11 Jul 2020 21:10:32 +0200 Subject: Fixed sha256sum and the script to produce it --- systemd-zfs-partition-backup/AUR/getsha256sum.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'systemd-zfs-partition-backup/AUR/getsha256sum.sh') diff --git a/systemd-zfs-partition-backup/AUR/getsha256sum.sh b/systemd-zfs-partition-backup/AUR/getsha256sum.sh index 92760b3..df3d588 100755 --- a/systemd-zfs-partition-backup/AUR/getsha256sum.sh +++ b/systemd-zfs-partition-backup/AUR/getsha256sum.sh @@ -11,11 +11,18 @@ ARCHIVE=$(mktemp --suffix=.tar.bz2) +echo $ARCHIVE cd $(git rev-parse --show-toplevel) -git archive -o "$ARCHIVE" master +git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" master cd - > /dev/null -cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }' +echo "# Archive content" +tar tvf $ARCHIVE | xargs -i printf "\t%s\n" "{}" +echo +echo +echo "# sha256sum" +cat $ARCHIVE | sha256sum | awk '/-$/{ print "\t" $1 "\n" }' + rm $ARCHIVE -- cgit v1.2.3