summaryrefslogtreecommitdiff
path: root/.local/bin/upd
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/upd')
-rwxr-xr-x.local/bin/upd2
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/bin/upd b/.local/bin/upd
index edf9ccd7..d48cd839 100755
--- a/.local/bin/upd
+++ b/.local/bin/upd
@@ -36,7 +36,9 @@ misc ()
sudo hardcode-fixer
nsxiv -c
# my ways
+ # -exec can't replace -execdir here
find "$XDG_CACHE_HOME/nsxiv/" -depth -type d -empty -execdir rmdir -- '{}' \+
+ # -exec can replace -execdir here
#find "$XDG_CACHE_HOME/nsxiv/" -depth -type d -execdir rmdir --ignore-fail-on-non-empty -- '{}' \+
# nsxiv man page way
#find "$XDG_CACHE_HOME/nsxiv/" -depth -type d -empty ! -name '.' -exec rmdir -- '{}' \;