From d3fa1f0dd4e1232f2c8b847c90d5d085ea424b9c Mon Sep 17 00:00:00 2001 From: Adar Nimrod Date: Thu, 6 Jul 2017 13:49:50 +0300 Subject: [PATCH] - Corrected deletion of comic books from 2 months ago. --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 4fc07e1..593b58d 100644 --- a/.bashrc +++ b/.bashrc @@ -149,8 +149,8 @@ sync_comics () { local this_month last_month this_month="$( date '+xbmc.shore.co.il:/srv/library/Comics/0-Day\ Week\ of\ %Y.%m.*' )" last_month="$( date --date '1 month ago' '+xbmc.shore.co.il:/srv/library/Comics/0-Day\ Week\ of\ %Y.%m.*' )" - rsync --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/" - find "$HOME/Downloads/Comics/" -name "$(date --date '2 month ago' +''0-Day\ Week\ of\ %Y.%m.*)" -delete + rsync --ignore-missing-args --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/" + find "$HOME/Downloads/Comics/" -name "$(date --date '2 month ago' +'0-Day\ Week\ of\ %Y.%m.*')" -print0 | xargs -r0 rm -r } bfg () { -- GitLab