Properly handle khal notification exit status

This commit is contained in:
Daniel Siepmann 2022-12-13 09:14:24 +01:00
parent 6927395384
commit 4fd9bcaf75
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -18,7 +18,7 @@ let
text = ''
date=$(date "+%H:%M:00")
events=$(${workingKhalPkgs.khal}/bin/khal list --notstarted "$date" "$1")
if [ -z "$events" ]; then
if ! echo "$events" | grep -v "No events"; then
exit 0;
fi