From f0f52f14bfc6b4dd3210dccf177e7f51f1148a44 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 25 Jul 2021 13:33:16 +0200 Subject: Correcting 'directory-is-empty' check in postinst. Signed-off-by: Daniel Baumann --- debian/open-infrastructure-container-tools.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/open-infrastructure-container-tools.postinst b/debian/open-infrastructure-container-tools.postinst index f0eff2b..cad8ce0 100755 --- a/debian/open-infrastructure-container-tools.postinst +++ b/debian/open-infrastructure-container-tools.postinst @@ -19,7 +19,7 @@ Install () rm -f "${DEFAULT}" ln -s "${TARGET}" "${DEFAULT}" else - if [ -e "${DEFAULT}" ] && find "${DEFAULT}" -maxdepth 0 -empty > /dev/null 2>&1 + if [ -e "${DEFAULT}" ] && [ -z "$(ls -A ${DEFAULT})" ] then rmdir "${DEFAULT}" ln -s "${TARGET}" "${DEFAULT}" -- cgit v1.2.3