projects
/
tpope-extra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86181f0
)
Removed some debug statements
author
Tim Pope
<code@tpope.net>
Thu, 16 Sep 2004 23:59:34 +0000
(23:59 +0000)
committer
Tim Pope
<code@tpope.net>
Thu, 16 Sep 2004 23:59:34 +0000
(23:59 +0000)
bin/away-detect
patch
|
blob
|
history
diff --git
a/bin/away-detect
b/bin/away-detect
index e7b5052b7302b11aaa4f166caaabb3e1eec34dbd..8424b9c2bc12e9214350c9d08d46a9e35083582e 100755
(executable)
--- a/
bin/away-detect
+++ b/
bin/away-detect
@@
-74,13
+74,11
@@
while read times event; do
max_end="$end"
end="`expr 3 \* $begin / 4 + $end / 4`"
begin="`expr $begin - 15`"
- echo $begin $now $end $max_end
if [ "$begin" -le "$now" -a "$now" -lt "$end" ]; then
echo "scheduled=\"Class ($event)\"" >> "$HOME/.away-smart"
break
elif [ "$old_away" = "Class ($event)" -a "$now" -gt "$max_end" ]; then
echo "old_smart=\"$old_away\"" > "$HOME/.away-smart"
- echo HI MOM
fi
done