diff --git a/meta/recipes-support/isar-exclude-docs/files/postinst b/meta/recipes-support/isar-exclude-docs/files/postinst
index 581cdc1339e8..78e5d58354ea 100644
--- a/meta/recipes-support/isar-exclude-docs/files/postinst
+++ b/meta/recipes-support/isar-exclude-docs/files/postinst
@@ -3,5 +3,5 @@
 # time and do not need to be "the first" package
 # what we delete needs to be in sync with the dpkg configuration we ship
 
-find /usr/share/man/ -type f -exec rm -rf {} \;
-find /usr/share/doc/ -type f ! -name "copyright" ! -name "changelog.*" -exec rm -rf {} \;
+find /usr/share/man/ ! -type d -exec rm -f {} \;
+find /usr/share/doc/ ! -type d ! -name "copyright" ! -name "changelog.*" -exec rm -f {} \;
diff --git a/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.1.bb b/meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb
similarity index 100%
rename from meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.1.bb
rename to meta/recipes-support/isar-exclude-docs/isar-exclude-docs_0.2.2.bb
