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"