diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-04-12 11:49:55 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-04-12 11:49:55 +0800 |
| commit | 73e2aa4cee08900882d77cb94a74c338aa9740f2 (patch) | |
| tree | bae3519d18ea20d31d8262629c89f886d9a4866e /bin/task/context | |
| parent | 4a07004b6ee653209bae7a40257885759c22ea27 (diff) | |
Update
Diffstat (limited to 'bin/task/context')
| -rwxr-xr-x | bin/task/context | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/task/context b/bin/task/context index c8e3f7a..fd10baf 100755 --- a/bin/task/context +++ b/bin/task/context | |||
| @@ -7,10 +7,11 @@ | |||
| 7 | # | 7 | # |
| 8 | # TODO support minus time | 8 | # TODO support minus time |
| 9 | 9 | ||
| 10 | LOG_FILE=~/log/.context && touch $LOG_FILE | 10 | LOG_FILE=~/.context && touch $LOG_FILE |
| 11 | PLAN_FILE=~/log/plan.context.md | 11 | PLAN_FILE=~/log/plan.context.md |
| 12 | PROC=$$ | 12 | PROC=$$ |
| 13 | trap 'exit 1' SIGUSR1 | 13 | trap 'exit 1' SIGUSR1 |
| 14 | trap 'rsync_retry $0' EXIT | ||
| 14 | 15 | ||
| 15 | context="$(cat ~/.task/context)" | 16 | context="$(cat ~/.task/context)" |
| 16 | [[ "$*" =~ '-s' ]] && SET=true && shift | 17 | [[ "$*" =~ '-s' ]] && SET=true && shift |