Use `test -d` instead of `find` to check directory
This commit is contained in:
parent
a8cadc298e
commit
49d0740b7e
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue