🐛 rmdir-empty: ignore cwd to avoid error message

master
neingeist 2 years ago
parent a58706e9aa
commit c540423ba3

@ -1,3 +1,5 @@
#!/bin/sh #!/bin/sh
# recursively delete empty directories # recursively delete empty directories
find . -depth -type d -empty -exec rmdir -v {} \; find . -depth \
-path "." -prune -or \
-type d -empty -exec rmdir -v {} \;

Loading…
Cancel
Save