mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-08-17 16:10:56 +02:00
batdiff/lib: Fix hardcoded git executable name (#35)
Thanks to @lilyball for pointing it out.
This commit is contained in:
@ -19,7 +19,7 @@ PROGRAM_VERSION="$({
|
||||
TOP="$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
|
||||
printf "%s" "$(cat "${TOP}/version.txt" 2>/dev/null || echo "unknown")"
|
||||
if [[ -e "${TOP}/.git" ]]; then
|
||||
printf "%s-git (%s)" "" "$(git -C "${TOP}" rev-parse --short HEAD)"
|
||||
printf "%s-git (%s)" "" "$("${EXECUTABLE_GIT}" -C "${TOP}" rev-parse --short HEAD)"
|
||||
fi
|
||||
})"
|
||||
|
||||
|
Reference in New Issue
Block a user