=== modified file 'bin/snap.push.single' --- bin/snap.push.single 2014-02-26 23:31:43 +0000 +++ bin/snap.push.single 2014-02-20 23:36:38 +0000 @@ -66,10 +66,10 @@ push_local() { test -d "$SNAP_DST" || die "destination not a directory: ${SNAP_DST}" - snapshot=$(snap.list "$SNAP_DST/" | tail -1) - if test -n "$snapshot"; then + snapshot=$(snap.list "$SNAP_DST" | tail -1) + if test -n $snapshot; then link=${SNAP_DST}/${snapshots} - rs "$@" "--link-dest=$link/" "$SNAP_SRC/" "$SNAP_DST/$ts/" || exit $? + rs "$@" "--link-dest=$link" "$SNAP_SRC/" "$SNAP_DST/$ts/" || exit $? else rs "$@" "$SNAP_SRC/" "$SNAP_DST/$ts/" || exit $? fi @@ -82,8 +82,8 @@ esac case "$SNAP_DST" in - (rsync:*) push_remote "$@";; - (*::*) push_remote "$@";; + (rsync:*) push_remote;; + (*::*) push_remote;; (*:*) die "pushing via remote shell directly not supported, use -e with rsync:// instead";; - (*) push_local "$@";; + (*) push_local;; esac