From 71c6af7c4470135d8b7ada37cbed4533793957f2 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 22 Mar 2022 14:31:10 +0100 Subject: [PATCH] Add nothing to do notification to git push-pending --- bin/git-push-pending | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/git-push-pending b/bin/git-push-pending index b6afb97..8b569d1 100755 --- a/bin/git-push-pending +++ b/bin/git-push-pending @@ -5,7 +5,9 @@ repositories=$(git-pending "$@" \ | lua -e 'for line in io.lines() do print(line:match("[^/]+$")); print((line:gsub("^[^ ]* ", ""))) end' \ ) if [ -z "$repositories" ] -then exit +then + notify-send Git "No pending repositories" + exit fi echo "$repositories" \ | zenity --list --column Repository --column Path --text "Repositories that need pushing:" --multiple --title "Git" --separator ';' --width 800 --height 300 --print-column=2 2>/dev/null \