Add Blob SHA to --version output

This should make it possible to determine the arkmanager
version when it hasn't been installed using the netinstall
script.
This commit is contained in:
Ben Peddell 2016-02-23 07:36:20 +10:00
parent e81f1905cd
commit 7c0abf2dfb

View File

@ -1806,6 +1806,7 @@ while true; do
if [ -n "${arkstCommit}" ]; then
echo "Commit: ${arkstCommit:0:7}"
fi
echo "Blob SHA: $( (echo -ne "blob $(stat -c "%s" "$0")\0"; sed "s@^arkstCommit=.*@arkstCommit=''@" "$0") | sha1sum | cut -d' ' -f1)"
exit 1
;;
-h|--help)