summaryrefslogtreecommitdiff
path: root/sync/sink
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-10-11 15:08:51 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2021-10-11 15:08:51 -0500
commit2cf3ea2f828f6da07adff92a7dc5bce6069620ab (patch)
tree213dabd2d9301d3930f47f2a03c901dfbb100297 /sync/sink
parent551e1c638a6a4ff2130b3c374774f6006b28467d (diff)
downloadscripts-2cf3ea2f828f6da07adff92a7dc5bce6069620ab.tar.xz
scripts-2cf3ea2f828f6da07adff92a7dc5bce6069620ab.zip
sinking
Diffstat (limited to 'sync/sink')
-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