mirror of
https://github.com/Fakerr/git-recall.git
synced 2026-09-10 07:26:42 -04:00
add condition for lesskey
This commit is contained in:
parent
c4f952c023
commit
b4eb3ddac3
|
|
@ -89,6 +89,12 @@ else
|
|||
uncolored
|
||||
fi
|
||||
|
||||
# Check if lesskey is correctly installed.
|
||||
if ! which lesskey &>/dev/null; then
|
||||
echo "abort: the program lesskey is not installed. Make sure to install it before running git-recall" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set AUTHOR to current user if no param passed or display for all users if param equal to "all".
|
||||
if [[ ! -n $AUTHOR ]]; then
|
||||
AUTHOR=$(git config user.name 2>/dev/null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue