diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-25 11:33:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-26 03:57:33 +0000 |
commit | f0f52f14bfc6b4dd3210dccf177e7f51f1148a44 (patch) | |
tree | 262bde997f056b8590ead23d06b7ba4b4288b449 | |
parent | Refreshing debconf files. (diff) | |
download | open-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-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}" |