projects
/
tpope-extra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Holiday support
[tpope-extra.git]
/
bin
/
away-detect
diff --git
a/bin/away-detect
b/bin/away-detect
index 118bbff597a7a097e67098fb5544e95c3b4ae9d0..a3836e8d00a12ddc7b719d472c9722ac9ca1dabf 100755
(executable)
--- a/
bin/away-detect
+++ b/
bin/away-detect
@@
-80,7
+80,7
@@
while read times event; do
if [ "$begin" -le "$now" -a "$now" -lt "$end" ]; then
echo "scheduled=\"Class ($event)\"" > "$HOME/.away-smart"
break
if [ "$begin" -le "$now" -a "$now" -lt "$end" ]; then
echo "scheduled=\"Class ($event)\"" > "$HOME/.away-smart"
break
- elif [ "$old_away" = "
$event
" -a "$now" -gt "$max_end" ]; then
+ elif [ "$old_away" = "
Class ($event)
" -a "$now" -gt "$max_end" ]; then
echo "old_smart=\"$old_away\"" > "$HOME/.away-smart"
fi
done
echo "old_smart=\"$old_away\"" > "$HOME/.away-smart"
fi
done