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 when REMOVE_DELETED option is used (new version of the fix) #193

Merged
merged 4 commits into from
Dec 11, 2024
Merged
Changes from all commits
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
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 --full-time "$Lib" | grep -v -e ".*\.log$" -e "^total [0-9]\+"`
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 --full-time "$Lib" | grep -v -e ".*\.log$" -e "^total [0-9]\+"`
echo "$lib_list_after"

#compare filelist before and after
Expand Down
Loading