aboutsummaryrefslogtreecommitdiff
path: root/timelog
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-10-31 12:00:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-10-31 12:00:59 -0200
commit3d581cd8b8c5833b13e3dbbc88a499b559b1d80d (patch)
treeb39bf41be01ac7edf5e5ceb3f512a7acd667cb2e /timelog
parenta2ad11ec1b78bbec4cc93ab6e471f8f1cf3053b9 (diff)
downloadscripts-3d581cd8b8c5833b13e3dbbc88a499b559b1d80d.tar.gz
scripts-3d581cd8b8c5833b13e3dbbc88a499b559b1d80d.tar.bz2
Support for timelogging code projects
Diffstat (limited to 'timelog')
-rwxr-xr-xtimelog5
1 files changed, 5 insertions, 0 deletions
diff --git a/timelog b/timelog
index e5d4355..289c298 100755
--- a/timelog
+++ b/timelog
@@ -9,6 +9,7 @@
# https://github.com/winged/worklog
BASE="$HOME/file"
+CODEBASE="$HOME/code"
GROUP="$1"
ACTION="$2"
BASENAME="`basename $0`"
@@ -22,6 +23,10 @@ if [ -z "$EDITOR" ]; then
EDITOR="vi"
fi
+if [ -d "$CODEBASE/$GROUP" ] && [ ! -d "$BASE/$GROUP" ]; then
+ BASE="$CODEBASE"
+fi
+
mkdir -p $BASE/$GROUP/worklog
if [ ! -e "$BASE/$GROUP/worklog/projects" ]; then