aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2020-10-06 14:56:04 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2020-10-06 14:56:04 +0800
commit55a8828ce7ba6255c29fbc6568ae96e9412d0c98 (patch)
treed7610bb8b0d4f847aa704bffd148884cfef37265 /tools
parent4aa91c532bfed6642d28444203ca0794a8cf9a13 (diff)
update
Diffstat (limited to 'tools')
-rwxr-xr-xtools/init/sync.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/init/sync.sh b/tools/init/sync.sh
index 81b95ab..11fb7df 100755
--- a/tools/init/sync.sh
+++ b/tools/init/sync.sh
@@ -1,6 +1,10 @@
1#!/bin/bash 1#!/bin/bash
2 2
3# my repo 3# my repo
4sync() {
5 [ ! -d $1 ] && return
6 cd $1 && git pull --quiet || echo in `pwd` > /dev/tty &
7}
4sync $SETTING_DIR 8sync $SETTING_DIR
5sync ~/vimwiki 9sync ~/vimwiki
6sync ~/.task 10sync ~/.task