Use `test -d` instead of `find` to check directory

This commit is contained in:
Jeremy Gardais 2021-04-12 15:54:21 +02:00
parent a8cadc298e
commit 49d0740b7e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ is_directory_absent() { # {{{
### Check if the directory exists
# shellcheck disable=SC2086
if find ${local_directory_absent} -type d > /dev/null 2>&1; then
if test -d "${local_directory_absent}"; then
return_is_directory_absent="1"
debug_message "is_directory_absent \
The directory ${RED}${local_directory_absent}${COLOR_DEBUG} exists."