summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/orgext4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/orgext b/.local/bin/orgext
index 53203d4d..2ece9e72 100755
--- a/.local/bin/orgext
+++ b/.local/bin/orgext
@@ -8,8 +8,8 @@
outdir ()
{
- find . -type f -execdir mv -t "$PWD" -- '{}' \+
- find . -mindepth 1 -maxdepth 1 -type d -execdir rm -r -- '{}' \+
+ find . -type f -execdir mv -nt "$PWD" -- '{}' \+
+ find . -mindepth 1 -maxdepth 1 -type d -delete
}
# may further optimize by output file extension names to a variable and use it for both mkdir and mv, current is fast enough for me