4 # rpush [-f|--force] SRC DEST ssh SSH_args..
6 # rpush [-f|--force] SRC DEST eval
9 # will try not to overwrite DEST unless -f is specified.
11 # "ssh" and "eval" are just examples; any valid bash command
12 # which interpretes arguments in the same way as "eval" will do.
14 # Licensed to all under AGPL as published by FSF.
15 # Copyright (C) 2012 by Ivan Zakharyaschev imz at altlinux.org
45 pv
--wait "$SRC" | RSH
"$@" "${CHECK:+"ls -l $DEST >&2 2>/dev/null && exit 1 || "}" "cat > $DEST"
46 # TODO: the problem here: the value $DEST should be protected from an expansion by the remote shell.