Project

General

Profile

« Previous | Next » 

Revision 10009

lib/sh/sync.sh: upload(): usage: documented put's swap=1 flag, which downloads instead of uploads

View differences:

sync.sh
5 5

  
6 6
alias use_sync='declare prefix=sync_; import_vars; unset prefix'
7 7

  
8
upload() # usage: local_dir=... remote_url=server:dir upload [opt|path]...
8
upload() #usage: local_dir=... remote_url=serv:dir [swap=1] upload [opt|path]...
9
# swap: downloads instead of uploads
9 10
# requires put from https://uutils.googlecode.com/svn/trunk/bin/put
10 11
{
11 12
	echo_func; kw_params local_dir remote_url; echo_vars swap

Also available in: Unified diff