Marc Weber found a bug in 'tt' without parameter.
--- a/tt Thu Feb 12 22:50:17 2009 +0100
+++ b/tt Thu Feb 12 23:15:49 2009 +0100
@@ -110,10 +110,12 @@
function status
{
- NAME=`tail -n 1 "$TT_PROJECT" | cut -f 2`
- STARTDATE=`tail -n 1 "$TT_PROJECT" | cut -f 1`
+ if [ -f "$TT_PROJECT" ]; then
+ NAME=`tail -n 1 "$TT_PROJECT" | cut -f 2`
+ STARTDATE=`tail -n 1 "$TT_PROJECT" | cut -f 1`
- echo `timebetween "$STARTDATE" "now"` "$NAME"
+ echo `timebetween "$STARTDATE" "now"` "$NAME"
+ fi
}
if [ $# -eq 0 ]; then