Skip to content

Commit

Permalink
Use -delete in find to remove empty directories
Browse files Browse the repository at this point in the history
  • Loading branch information
JeGoi committed Oct 2, 2024
1 parent 344c926 commit 8a5231a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/pfdebian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN /usr/local/pf/addons/dev-helpers/debian/install-pf-dependencies.sh && \
RUN apt-get -qq remove --purge -y locales-all && \
apt-get clean && \
find /usr/share/doc -depth -type f ! -name copyright -exec rm {} \; && \
find /usr/share/doc -empty -exec rm {} \; && \
find /usr/share/doc -type d -empty -delete && \
rm -rf /usr/share/groff/* /usr/share/info/* && \
rm -rf /usr/share/lintian/* /usr/share/linda/* /var/cache/man/*

Expand Down

0 comments on commit 8a5231a

Please sign in to comment.