mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-02-21 03:00:56 +01:00
batdiff/lib: Fix hardcoded git executable name (#35)
Thanks to @lilyball for pointing it out.
This commit is contained in:
parent
3029b6749f
commit
6052d6ee17
@ -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
|
||||
})"
|
||||
|
||||
|
@ -164,7 +164,7 @@ main() {
|
||||
if [[ -f "$file" ]]; then
|
||||
print_diff "$file"
|
||||
fi
|
||||
done < <(git diff --name-only --diff-filter=d)
|
||||
done < <("${EXECUTABLE_GIT}" diff --name-only --diff-filter=d)
|
||||
return
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user