aboutsummaryrefslogtreecommitdiff
path: root/systemd-zfs-partition-backup/AUR/getsha256sum.sh
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-zfs-partition-backup/AUR/getsha256sum.sh')
-rwxr-xr-xsystemd-zfs-partition-backup/AUR/getsha256sum.sh11
1 files changed, 9 insertions, 2 deletions
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 @@
11 11
12 12
13ARCHIVE=$(mktemp --suffix=.tar.bz2) 13ARCHIVE=$(mktemp --suffix=.tar.bz2)
14echo $ARCHIVE
14 15
15cd $(git rev-parse --show-toplevel) 16cd $(git rev-parse --show-toplevel)
16git archive -o "$ARCHIVE" master 17git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" master
17cd - > /dev/null 18cd - > /dev/null
18 19
19cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }' 20echo "# Archive content"
21tar tvf $ARCHIVE | xargs -i printf "\t%s\n" "{}"
22echo
23echo
24echo "# sha256sum"
25cat $ARCHIVE | sha256sum | awk '/-$/{ print "\t" $1 "\n" }'
26
20rm $ARCHIVE 27rm $ARCHIVE
21 28
..