Add nothing to do notification to git push-pending

This commit is contained in:
Talia 2022-03-22 14:31:10 +01:00
parent 396fb9ac6e
commit 71c6af7c44
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@ repositories=$(git-pending "$@" \
| lua -e 'for line in io.lines() do print(line:match("[^/]+$")); print((line:gsub("^[^ ]* ", ""))) end' \ | lua -e 'for line in io.lines() do print(line:match("[^/]+$")); print((line:gsub("^[^ ]* ", ""))) end' \
) )
if [ -z "$repositories" ] if [ -z "$repositories" ]
then exit then
notify-send Git "No pending repositories"
exit
fi fi
echo "$repositories" \ 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 \ | 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 \