diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-10-31 12:00:59 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-10-31 12:00:59 -0200 |
commit | 3d581cd8b8c5833b13e3dbbc88a499b559b1d80d (patch) | |
tree | b39bf41be01ac7edf5e5ceb3f512a7acd667cb2e /timelog | |
parent | a2ad11ec1b78bbec4cc93ab6e471f8f1cf3053b9 (diff) | |
download | scripts-3d581cd8b8c5833b13e3dbbc88a499b559b1d80d.tar.gz scripts-3d581cd8b8c5833b13e3dbbc88a499b559b1d80d.tar.bz2 |
Support for timelogging code projects
Diffstat (limited to 'timelog')
-rwxr-xr-x | timelog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |