diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2025-07-21 08:56:48 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2025-07-21 08:56:48 +0800 |
| commit | 85f1355b9fa02a5aa06089a4f55440127b84be55 (patch) | |
| tree | e270726781e1a7d7a2a6ef6922f841e378e3178b /bin/init | |
| parent | 6cfaa167276ecf826b7d082361c201c86c14c1f1 (diff) | |
Update
Diffstat (limited to 'bin/init')
| -rwxr-xr-x | bin/init/sync.sh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bin/init/sync.sh b/bin/init/sync.sh index a4c7542..c48a812 100755 --- a/bin/init/sync.sh +++ b/bin/init/sync.sh | |||
| @@ -3,10 +3,6 @@ | |||
| 3 | # If git is working in other process, then don't sync again | 3 | # If git is working in other process, then don't sync again |
| 4 | pidof git >/dev/null && exit 0 | 4 | pidof git >/dev/null && exit 0 |
| 5 | 5 | ||
| 6 | # Print information about ~/.wakeup | ||
| 7 | echo 'latest: ' $(date -d @`stat -c %Y ~/.wakeup` --iso-8601=seconds) | ||
| 8 | echo 'wakeup at: ' $(cat ~/.wakeup | xargs -i date -d @{} --iso-8601=seconds) | ||
| 9 | |||
| 10 | # Sync a repo | 6 | # Sync a repo |
| 11 | sync() { | 7 | sync() { |
| 12 | cd "$1" || return | 8 | cd "$1" || return |
| @@ -31,8 +27,5 @@ while true; do | |||
| 31 | fi | 27 | fi |
| 32 | done | 28 | done |
| 33 | 29 | ||
| 34 | touch ~/.wakeup | ||
| 35 | |||
| 36 | |||
| 37 | # others repo | 30 | # others repo |
| 38 | #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & | 31 | #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & |