=== modified file 'bin/snap.push' --- bin/snap.push 2014-02-20 21:22:51 +0000 +++ bin/snap.push 2014-02-20 20:50:01 +0000 @@ -15,19 +15,14 @@ SNAP_DST=${SNAP_DST%%/} typeset -A snapshots -for ts in ${(f)"$(snap.list $SNAP_SRCS/)"}; do +for ts in ${(f)"$(snap.list $SNAP_SRCS)"}; do snapshots[$ts]=$SNAP_SRCS/$ts done - -for ts in ${(f)"$(snap.list $SNAP_DST/)"}; do +for ts in ${(f)"$(snap.list $SNAP_DST)"}; do unset "snapshots[$ts]" done export SNAP_SRC SNAP_DST -for SNAP_SRC in $snapshots; do - if [[ -o xtrace ]]; then - zsh -x $commands[snap.push.single] "$@" - else - snap.push.single "$@" - fi +for SNAP_SRC in ${(k)snap_src}; do + snap.push.single "$@" done === modified file 'bin/snap.rsync.post' --- bin/snap.rsync.post 2014-02-20 21:22:51 +0000 +++ bin/snap.rsync.post 2014-02-19 02:28:06 +0000 @@ -27,5 +27,4 @@ ts=${mark##*.} rsync -aA --exclude=/.snapshot.\* --link-dest="$RSYNC_MODULE_PATH/" "$RSYNC_MODULE_PATH/" "$snap_dir/$ts/" || exit $? -touch "$snap_dir/$ts/${mark##*/}" || exit $? mv "$mark" "$snap_dir/" || exit $?