From 49d0740b7ef86df8af72f1d3c5f315f44d2418c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 12 Apr 2021 15:54:21 +0200 Subject: [PATCH] Use `test -d` instead of `find` to check directory --- proxmox/backup.pve.content.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox/backup.pve.content.sh b/proxmox/backup.pve.content.sh index dfab1c6..7a73806 100755 --- a/proxmox/backup.pve.content.sh +++ b/proxmox/backup.pve.content.sh @@ -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."