From a8d02267bcaeb90e9933b63c666bf693158da154 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 6 Apr 2018 14:19:29 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- odin/strm/cleanup_youtube | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odin/strm') diff --git a/odin/strm/cleanup_youtube b/odin/strm/cleanup_youtube index 0df15d0b..694487a5 100755 --- a/odin/strm/cleanup_youtube +++ b/odin/strm/cleanup_youtube @@ -2,7 +2,7 @@ function notmuch { while true; do - result=$($_env NOTMUCH_CONFIG=${HOME}/.notmuch-rss-config @notmuch@/bin/notmuch "$@" 2>&1) + result=$(env NOTMUCH_CONFIG=${HOME}/.notmuch-rss-config @notmuch@/bin/notmuch "$@" 2>&1) if ! [[ $result =~ "already locked" ]]; then echo -nE $result return @@ -22,7 +22,7 @@ maxsize=$((1024 * 1024 * 1024 * 50)) while [[ $(du -bs $dir | awk '{ print $1; }') -gt $maxsize ]]; do find $dir -type f -not -path $dir/CACHEDIR.TAG -print0 | \ - xargs -0 -- $_stat --printf '%W %Y %Z %X %n\0' | \ + xargs -0 -- stat --printf '%W %Y %Z %X %n\0' | \ sort -t '\0' -z | \ awk -F '\0' '{ gsub("^\\S+\\s+\\S+\\s+\\S+\\s+\\S+\\s+", "", $1); printf "%s\0", $1; }' | \ xargs -0 -- rm -v -- cgit v1.2.3