From 8faa55cbb6383321bd1606c1b6d7bb25f2ac7aa5 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 15 Jun 2021 17:48:22 +0200 Subject: [PATCH] print description more reliably --- .local/bin/tools/calendaradd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/tools/calendaradd b/.local/bin/tools/calendaradd index 158e560..984c43a 100755 --- a/.local/bin/tools/calendaradd +++ b/.local/bin/tools/calendaradd @@ -1,6 +1,6 @@ #!/bin/sh calcurse -i "$1" #summary assumes ics format -summary="$(grep "SUMMARY[^:]*:" "$1" | cut -d':' -f2)" +summary="$(grep "SUMMARY[^:]*:" "$1" | cut --complement -d':' -f1)" notify-send "Calendar event added" "$summary" rm "$1"