typo in remdir, could try to remove both dirs
authorColas Nahaboo <colas@nahaboo.net>
Wed, 18 Oct 2017 16:09:31 +0200
changeset 234973ccdb6eed
parent 22 566bb1d3ec3c
child 24 dadf1a600842
typo in remdir, could try to remove both dirs
rsync-incr
     1.1 --- a/rsync-incr	Tue Jun 13 07:49:00 2017 +0200
     1.2 +++ b/rsync-incr	Wed Oct 18 16:09:31 2017 +0200
     1.3 @@ -63,7 +63,7 @@
     1.4  
     1.5  remdir () { 
     1.6    local empty=/tmp/empty-dir-for-rsync.$LOGNAME
     1.7 -  local path=$(realpath "$1")
     1.8 +  local path=$(realpath "$2")
     1.9    if test -n "$1"; then echo -n "Only $1 M free, "; fi
    1.10    fgrep -xqs "$path" $dellog && return # is being deleted by another instance
    1.11    echo "$path" >>$dellog