Skip to content

Commit

Permalink
Ignore .log files when listing library folder to avoid false positive…
Browse files Browse the repository at this point in the history
… change
  • Loading branch information
ospring committed Dec 9, 2024
1 parent 6cd647c commit 4ca8ce3
Show file tree
Hide file tree
Showing 5 changed files with 41,337 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/usr/local/kobocloud/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ then
fi

#list file in lib dir before sync
lib_list_before=`ls -lnR --full-time "$Lib"`
lib_list_before=`ls -lnR --ignore "*.log" --full-time "$Lib"`
echo "Current Library list"
echo "$lib_list_before"


while read url || [ -n "$url" ]; do
echo "Reading $url"
if echo "$url" | grep -q '^#'; then
Expand Down Expand Up @@ -102,7 +104,8 @@ if grep -q "^REMOVE_DELETED$" $UserConfig; then
fi

#list file in lib dir after sync
lib_list_after=`ls -lnR --full-time "$Lib"`
echo "New Library list"
lib_list_after=`ls -lnR --ignore "*.log" --full-time "$Lib"`
echo "$lib_list_after"

#compare filelist before and after
Expand Down
Loading

0 comments on commit 4ca8ce3

Please sign in to comment.