summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}"