From a46433ab6b7b9f926cd289f5a845b2293ae926f3 Mon Sep 17 00:00:00 2001 From: Fakerr Date: Sun, 29 Jan 2017 17:40:55 +0100 Subject: [PATCH] provide a better message --- git-recall | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/git-recall b/git-recall index 091c202..1daaac9 100644 --- a/git-recall +++ b/git-recall @@ -128,7 +128,13 @@ SN=$(( `tput lines` - 1 )) # Screen number of lines. TN=$(( $NI < $((SN -1)) ? $NI : $((SN -1)))) # Number of lines that we will display. # If there is no items, exit. -[[ $NI = 0 ]] && echo "${YELLOW}The contributor \"${AUTHOR}\" did nothing during this period.${NORMAL}" && exit 0 +if [[ $NI = 0 ]]; then + if [[ $AUTHOR = ".*" ]]; then + echo "${YELLOW}All contributors did nothing during this period.${NORMAL}" && exit 0 + else + echo "${YELLOW}The contributor \"${AUTHOR}\" did nothing during this period.${NORMAL}" && exit 0 + fi +fi # Set keys. au="`echo -e '\e[A'`" # arrow up