Commit 114c0cf2 authored by Natanael Copa's avatar Natanael Copa

abuild: rename global last_commit to ABUILD_LAST_COMMIT

rename the global variable to upppercase.
parent 1cfbdf68
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment