Skip to content

Commit

Permalink
handle empty directories gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
louisabraham committed May 28, 2024
1 parent 9a775a6 commit 186f612
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/usr/local/kobocloud/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ done < $UserConfig

recursiveUpdateFiles() {
for item in *; do
if [ "$item" = "*" ]; then
continue
fi
if [ -d "$item" ]; then
(cd -- "$item" && recursiveUpdateFiles)
elif grep -Fq "$item" "$Lib/filesList.log"; then
Expand Down

0 comments on commit 186f612

Please sign in to comment.