Skip to content

Commit 923ef69

Browse files
authored
Merge pull request #9 from devilbox/release-1.0.1
Ensure watcherd does not exit on path error
2 parents 56b21a3 + 6726fd4 commit 923ef69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

watcherd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ function print_version() {
100100
function get_subdirs() {
101101
local path="${1}"
102102
# shellcheck disable=SC2016
103-
find "${path}" \
103+
(find "${path}" || true) \
104104
| grep -Ev "^${path}\$" \
105105
| grep -Ev "^${path}/.+/" \
106-
| xargs -n1 sh -c 'if [ -d "${1}" ]; then echo "${1}"; fi' -- \
106+
| xargs -n1 sh -c 'if [ -d "${1}" ]; then echo "${1}"; fi' -- \
107107
| sort
108108
}
109109

0 commit comments

Comments
 (0)