From 623f644269916e32227e57e33bf89c4bf36cf2fa Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 3 Sep 2004 23:28:49 +0000 Subject: [PATCH] Minor fix --- bin/away-detect | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/away-detect b/bin/away-detect index 9764f75..57a89e5 100755 --- a/bin/away-detect +++ b/bin/away-detect @@ -69,7 +69,6 @@ set_active() { now="$(expr 60 \* $(date +%H) + $(date +%M))" -if ! today --category='holiday' | grep '' >/dev/null; then today --category='school' | sed -e s/^..........// -e 's/ \[.*\]$//'|grep '[0-9][0-9]:[0-9][0-9]-[0-9][0-9]:[0-9][0-9]'| \ while read times event; do begin="$(expr 60 \* $(echo $times|sed -e 's/-.*//' -e 's/:/ + /g'))" @@ -84,7 +83,6 @@ while read times event; do echo "old_smart=\"$old_away\"" > "$HOME/.away-smart" fi done -fi today --category='!school' | sed -e s/^..........//|grep '[0-9][0-9]:[0-9][0-9]-[0-9][0-9]:[0-9][0-9]'| \ while read times event; do -- 2.30.2