We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56b21a3 + 6726fd4 commit 923ef69Copy full SHA for 923ef69
1 file changed
watcherd
@@ -100,10 +100,10 @@ function print_version() {
100
function get_subdirs() {
101
local path="${1}"
102
# shellcheck disable=SC2016
103
- find "${path}" \
+ (find "${path}" || true) \
104
| grep -Ev "^${path}\$" \
105
| grep -Ev "^${path}/.+/" \
106
- | xargs -n1 sh -c 'if [ -d "${1}" ]; then echo "${1}"; fi' -- \
+ | xargs -n1 sh -c 'if [ -d "${1}" ]; then echo "${1}"; fi' -- \
107
| sort
108
}
109
0 commit comments