mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 10a39202b2e85f2dcffc6ca1ecd6589efac09f63
parent 723fbd3f96be08535f3bc6a3cc7fbecc4ef2bcf5
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed,  7 Nov 2018 01:00:36 +0100

do not run if no matching files

Diffstat:
hierarchive | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hierarchive b/hierarchive @@ -11,5 +11,5 @@ D=$(date '+%Y-%m-%d') F="$2/$D" mkdir "$F" cd "$1" -find -type f -mtime +$NDAYS -print0 | xargs -0 -n 1 hierarchive_file "$F" +find -type f -mtime +$NDAYS -print0 | xargs -r -0 -n 1 hierarchive_file "$F"