diff options
-rwxr-xr-x | debian/open-infrastructure-container-tools.postinst | 2 |
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}" |