Skip to content

Commit

Permalink
Merge pull request #9 from devilbox/release-1.0.1
Browse files Browse the repository at this point in the history
Ensure watcherd does not exit on path error
  • Loading branch information
cytopia authored Nov 22, 2020
2 parents 56b21a3 + 6726fd4 commit 923ef69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watcherd
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ function print_version() {
function get_subdirs() {
local path="${1}"
# shellcheck disable=SC2016
find "${path}" \
(find "${path}" || true) \
| grep -Ev "^${path}\$" \
| grep -Ev "^${path}/.+/" \
| xargs -n1 sh -c 'if [ -d "${1}" ]; then echo "${1}"; fi' -- \
| xargs -n1 sh -c 'if [ -d "${1}" ]; then echo "${1}"; fi' -- \
| sort
}

Expand Down

0 comments on commit 923ef69

Please sign in to comment.