File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 4
4
# Customise as needed; consider keeping as a git checkout for merging updates.
5
5
# Uses hledger, bash, python, a few other unix tools.
6
6
# wakelog is a script grepping system logs for sleep/wake events; provide it or comment it.
7
+ # $TIMELOG should be set to the main time log file.
8
+ # $TIMELOGDATA should be set to the time log data file if that's different.
7
9
# See also: justfile, an alternative.
8
10
9
11
# # #!/usr/bin/env -S osh # -*- sh -*- # or osh - more powerful, less tool support
@@ -37,10 +39,7 @@ cd "$DIR"
37
39
38
40
# The file where actual time data is logged, for dashboard's stats.
39
41
# This might or might not be the top-level $TIMELOG file.
40
- # TIMELOGDATA=$TIMELOG
41
- YEAR=$( $date +%Y)
42
- TIMELOGDATA=" $DIR " /time-" $YEAR " .timedot
43
-
42
+ TIMELOGDATA=${TIMELOGDATA:- $TIMELOG }
44
43
45
44
# ** REPORTS ------------------------------------------------------------
46
45
You can’t perform that action at this time.
0 commit comments