dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit f9bdde81e4aef4bfb0420283c3a367c1e8684f01
parent 8fa2c3dd531c97c462f6a153f13936f80109475e
Author: rsiddharth <s@ricketyspace.net>
Date:   Thu, 30 May 2019 21:01:37 -0400

usr/local/bin/rsync-bu: Update parse_src.

Allow remote sources.

Diffstat:
usr/local/bin/rsync-bu | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/usr/local/bin/rsync-bu b/usr/local/bin/rsync-bu @@ -15,14 +15,16 @@ parse_opts() { } parse_src() { - echo 'checking source...' + echo 'checking source...' $1 - if ! $(test -d $1) && ! $(test -f $1 ); then - echo 'Source "'$1'" does not exists' - exit 1 + if $(test -d $1) || $(test -f $1 ); then + return 0 + elif echo $1 | grep "@"; then + return 0 fi - return 0 + echo 'Source "'$1'" does not exists' + exit 1 } parse_dest() {