From d2fb2f99f51ac9bf0b22deb05f58c6553d79cf39 Mon Sep 17 00:00:00 2001 From: ospring Date: Tue, 10 Dec 2024 23:57:47 +0100 Subject: [PATCH] New methode to filter log file from library folder listing --- src/usr/local/kobocloud/get.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr/local/kobocloud/get.sh b/src/usr/local/kobocloud/get.sh index 6498c4e..260f6de 100755 --- a/src/usr/local/kobocloud/get.sh +++ b/src/usr/local/kobocloud/get.sh @@ -49,7 +49,7 @@ then fi #list file in lib dir before sync -lib_list_before=`ls -lnR --ignore "*.log" --full-time "$Lib"` +lib_list_before=`ls -lnR --ignore "*.log" --full-time "$Lib" | grep -v -e ".*\.log$" -e "^total [0-9]\+"` echo "Current Library list" echo "$lib_list_before" @@ -105,7 +105,7 @@ fi #list file in lib dir after sync echo "New Library list" -lib_list_after=`ls -lnR --ignore "*.log" --full-time "$Lib"` +lib_list_after=`ls -lnR --ignore "*.log" --full-time "$Lib" | grep -v -e ".*\.log$" -e "^total [0-9]\+"` echo "$lib_list_after" #compare filelist before and after