diff options
Diffstat (limited to 'sync')
-rwxr-xr-x | sync/sink | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2,7 +2,7 @@ printusage() { echo "Usage: $0 [<repos> ...] (repos: all,`echo $repos | tr ' ' ','`) [up|down]" && exit; } -repos="docs sites patches" +repos="docs patches" oper=`echo $@ | sed 's/.* //'` # Get last argument ([ -z $2 ] || ([ "$oper" != "up" ] && [ "$oper" != "down" ])) && printusage @@ -31,10 +31,9 @@ sync() { } # arg1 = options + containing directory path, arg2 = file/directory name -syncdocs() { destdir="" && sync "/home/timmy/" "docs"; } +syncdocs() { destdir="" && sync "/home/timmy/docs/" "school"; } #syncsites() { destdir="" && sync "--exclude=pass /home/timmy/.local/src/" "sites"; } # Excludes password file syncpatches() { destdir="" && sync "--exclude=.git /home/timmy/.local/src/programs/" "patches"; } # Excludes git files -syncsite() { destdir="/var/www/tjkeller/" && sync "/home/timmy/.local/src/sites/" "tjkeller"; } for arg in "$@"; do case $arg in |