Fix blob SHA Commit/Tag fixup

This commit is contained in:
Ben Peddell 2016-09-17 23:03:37 +10:00
parent 85e717a85f
commit 02173e86df

View File

@ -2662,7 +2662,7 @@ main(){
echo "Release Tag: ${arkstTag}"
fi
blobsize="$(sed "s@^arkst\\(Commit\\|Tag\\)=.*@\\1=''@" "$0" | wc -c)"
echo "Blob SHA: $( (echo -ne "blob ${blobsize}\0"; sed "s@^arkst\\(Commit\\|Tag\\)=.*@\\1=''@" "$0") | sha1sum | cut -d' ' -f1)"
echo "Blob SHA: $( (echo -ne "blob ${blobsize}\0"; sed "s@^\\(arkst\\(Commit\\|Tag\\)\\)=.*@\\1=''@" "$0") | sha1sum | cut -d' ' -f1)"
exit 1
;;
-h|--help)