Skip to content

Commit

Permalink
Merge pull request #193 from ospring/FixBackToHomev2
Browse files Browse the repository at this point in the history
Fix back to home when REMOVE_DELETED option is used (new version of the fix)
  • Loading branch information
fsantini authored Dec 11, 2024
2 parents 6cd647c + 7fd7221 commit 2cb93ab
Showing 1 changed file with 5 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 --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

0 comments on commit 2cb93ab

Please sign in to comment.