summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-25 11:33:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-26 03:57:33 +0000
commitf0f52f14bfc6b4dd3210dccf177e7f51f1148a44 (patch)
tree262bde997f056b8590ead23d06b7ba4b4288b449
parentRefreshing debconf files. (diff)
downloadopen-infrastructure-compute-tools-f0f52f14bfc6b4dd3210dccf177e7f51f1148a44.tar.xz
open-infrastructure-compute-tools-f0f52f14bfc6b4dd3210dccf177e7f51f1148a44.zip
Correcting 'directory-is-empty' check in postinst.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/open-infrastructure-container-tools.postinst2
1 files changed, 1 insertions, 1 deletions
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}"