trivial bugfix
authorColas Nahaboo <colas@nahaboo.net>
Fri, 26 May 2017 13:45:59 +0200
changeset 1817013dda6719
parent 17 599c5671b789
child 19 3519a69bec56
trivial bugfix
rsync-incr
     1.1 --- a/rsync-incr	Fri May 26 10:04:48 2017 +0200
     1.2 +++ b/rsync-incr	Fri May 26 13:45:59 2017 +0200
     1.3 @@ -52,7 +52,7 @@
     1.4    local empty=/tmp/empty-dir-for-rsync.$LOGNAME
     1.5    local path=$(realpath "$1")
     1.6    if test -n "$1"; then echo -n "Only $1 M free, "; fi
     1.7 -  fgrep -xq "$path" $dellog && return # is being deleted by another instance
     1.8 +  fgrep -xqs "$path" $dellog && return # is being deleted by another instance
     1.9    echo "$path" >>$dellog
    1.10    echo "Removing old backup: $2"
    1.11    # fast rm ,see https://unix.stackexchange.com/questions/106133/why-is-rm-slow