From 2d4e794774add2fde4f8a8544444ae7a0d85f0ad Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 28 May 2013 19:19:06 +0200 Subject: clock: remove holiday marker if at end of line --- bin/clock.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/clock.sh b/bin/clock.sh index 0a36087..8b26f9f 100644 --- a/bin/clock.sh +++ b/bin/clock.sh @@ -27,6 +27,7 @@ do # remove leftover holiday marker s/:\(\( \|[0-9]\)[0-9]\)/ \1/g; \ + s/:$//g; \ # remove empty lines /^[ \t]*$/d" @@ -42,6 +43,7 @@ do # remove leftover holiday marker s/:\(\( \|[0-9]\)[0-9]\)/ \1/g; \ + s/:$//g; \ # remove empty lines /^[ \t]*$/d" -- cgit v1.2.3