switched the inline command to fetch the commit version to the small version and moved it to a variable just avobe the tar command.

this improves readability i think. the real change is in the %H to %h.
This commit is contained in:
germedeb 2022-08-29 16:37:13 -03:00
parent 528a04825d
commit 23b1620a53
1 changed files with 3 additions and 1 deletions

View File

@ -7,4 +7,6 @@ echo 'will cite' | parallel --bibtex
broadwayd :5 &
GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 bash tasks/build.sh -r -v -e -k -o
tar -cvzf ~/output/aleta-`git log --pretty=format:%H -1`.tar.gz _build/aleta
COMMITVER="`git log --pretty=format:%h -1`"
tar -cvzf ~/output/aleta-"$COMMITVER".tar.gz _build/aleta