From 23b1620a53c6814e0954fe3eb17a4001f2cdbd83 Mon Sep 17 00:00:00 2001 From: germedeb Date: Mon, 29 Aug 2022 16:37:13 -0300 Subject: [PATCH] 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. --- generate_release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate_release.sh b/generate_release.sh index 66bc81e..09131cf 100644 --- a/generate_release.sh +++ b/generate_release.sh @@ -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