VERSION=1.9beta3 small typo that printed sometimes spurious "silent: command not found" messages default tip
authorColas Nahaboo <colas@nahaboo.net>
Tue, 03 Apr 2018 14:18:43 +0200
changeset 25844b3df1032a
parent 24 dadf1a600842
VERSION=1.9beta3 small typo that printed sometimes spurious "silent: command not found" messages
rsync-incr
     1.1 --- a/rsync-incr	Tue Feb 27 10:56:47 2018 +0100
     1.2 +++ b/rsync-incr	Tue Apr 03 14:18:43 2018 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  #!/bin/bash
     1.5  set -a
     1.6 -VERSION=1.9beta2
     1.7 -DATE=2017-06-13
     1.8 +VERSION=1.9beta3
     1.9 +DATE=2018-04-03
    1.10  
    1.11  USAGE="rsync-incr [options] N sourcedir destdir
    1.12  rsync-incr is a wrapper shell script around rsync to perform automated,
    1.13 @@ -56,7 +56,7 @@
    1.14    [ "$1" = -q ] && silent=true && shift
    1.15    local ipc=$(df -imP "$1" |tail -1|grep -oP ' \K[0-9]+(?=%)')
    1.16    if let 'ipc > inodespcmaxpc'; then 
    1.17 -    silent || echo "Not enough free inodes (used: $ipc%), cleaning..."
    1.18 +    $silent || echo "Not enough free inodes (used: $ipc%), cleaning..."
    1.19      return 1
    1.20    else
    1.21      return 0