Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix back to home with REMOVE_DELETED option activated #192

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Ignore .log files when listing library folder to avoid false positive…
… change
  • Loading branch information
ospring committed Dec 9, 2024
commit 4ca8ce3247c242ca20b4d6703be7010ad6bf63e9
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