From 2cf3ea2f828f6da07adff92a7dc5bce6069620ab Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Mon, 11 Oct 2021 15:08:51 -0500 Subject: sinking --- sync/sink | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sync/sink') diff --git a/sync/sink b/sync/sink index 04c95e6..3022963 100755 --- a/sync/sink +++ b/sync/sink @@ -2,7 +2,7 @@ printusage() { echo "Usage: $0 [ ...] (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 -- cgit v1.2.3