From e8eb8fa8cd7db53842ec44402db8c62e896a0754 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 17 Apr 2023 02:01:40 +0200 Subject: [PATCH] remove empty directories --- _12345.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_12345.sh b/_12345.sh index 2d7635e5..6f46c79b 100755 --- a/_12345.sh +++ b/_12345.sh @@ -99,8 +99,8 @@ while true; do ############# PUBLISH IPFSNODEID BALISE # Clean Empty Directory (inode dependancy BUG ??) - #~ du -b ~/.zen/tmp/${IPFSNODEID} > /tmp/du - #~ while read branch; do [[ $branch =~ "4096" ]] && rm -Rf $(echo $branch | cut -f 2 -d ' '); done < /tmp/du + du -b ~/.zen/tmp/${IPFSNODEID} > /tmp/du + while read branch; do [[ $branch =~ "4096" ]] && rm -Rf $(echo $branch | cut -f 2 -d ' '); done < /tmp/du # Scan local cache ls ~/.zen/tmp/${IPFSNODEID}/