diff options
-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 |