abuild: rename global last_commit to ABUILD_LAST_COMMIT

rename the global variable to upppercase.
This commit is contained in:
Natanael Copa 2019-11-07 14:13:00 +00:00
parent 1cfbdf688c
commit 114c0cf287
1 changed files with 4 additions and 4 deletions

View File

@ -1012,11 +1012,11 @@ prepare_metafiles() {
done
fi
# store last_commit in global var so we only call git once
if [ -z "$last_commit" ]; then
last_commit="$(git_last_commit)$(git_dirty)"
# store ABUILD_LAST_COMMIT in global var so we only call git once
if [ -z "$ABUILD_LAST_COMMIT" ]; then
ABUILD_LAST_COMMIT="$(git_last_commit)$(git_dirty)"
fi
echo "commit = $last_commit" >> "$pkginfo"
echo "commit = $ABUILD_LAST_COMMIT" >> "$pkginfo"
get_maintainer
if [ -n "$maintainer" ]; then