summaryrefslogtreecommitdiff
path: root/.local/bin/mvtr
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-09-09 23:55:59 -0700
committerxyz <gky44px1999@gmail.com>2021-09-09 23:55:59 -0700
commitcdcdb977280d1acaae130a3937b3e85b67623b87 (patch)
tree9decd14ae051cf63093edf68dfb5109919449ad0 /.local/bin/mvtr
parent2b69161bbee641bf1ae339febc74617ed6407e2e (diff)
find change --execdir to --exec, --execdir not posix compliant?
Diffstat (limited to '.local/bin/mvtr')
-rwxr-xr-x.local/bin/mvtr3
1 files changed, 1 insertions, 2 deletions
diff --git a/.local/bin/mvtr b/.local/bin/mvtr
index 7744da51..dcea8409 100755
--- a/.local/bin/mvtr
+++ b/.local/bin/mvtr
@@ -4,5 +4,4 @@
# link also show perl-rename approach
# https://linuxconfig.org/rename-all-files-from-uppercase-to-lowercase-characters
# if only change ' ' to '_' `rename` might be sufficient, for upper to lower case might need perl-rename if want concise
-# shellcheck suggest use $1 for sh -c for better error messaging? see SC2156
-find "$@" -depth -execdir sh -c 'mv -nvT -- "$1" "$(echo "$1" | tr "[:upper:] " "[:lower:]_")"' sh '{}' \;
+find "$@" -depth -exec sh -c 'mv -nvT -- "$1" "$(echo "$1" | tr "[:upper:] " "[:lower:]_")"' sh '{}' \;