summaryrefslogtreecommitdiff
path: root/sync
diff options
context:
space:
mode:
Diffstat (limited to 'sync')
-rwxr-xr-xsync/sink5
1 files changed, 2 insertions, 3 deletions
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> ...] (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