]> git.phdru.name Git - dotfiles.git/commitdiff
Feat(bin/cleanup-recode.sh): Default is the current directory
authorOleg Broytman <phd@phdru.name>
Sun, 28 Jan 2024 20:56:48 +0000 (23:56 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 28 Jan 2024 20:56:48 +0000 (23:56 +0300)
bin/cleanup-recode.sh

index 427cd6db22a3b055827591930c8ea6104f338c02..3f8213d2d92cd638d66f9e583f1c2def14dbbe75 100755 (executable)
@@ -16,7 +16,7 @@ while getopts f:t: opt; do
 done
 shift `expr $OPTIND - 1`
 
-for dir in "$@"; do
+for dir in "${@:-.}"; do
    cleanup-filenames-recursive.sh "$dir" &&
    recode-filenames-recursive.py "$from_enc" "$to_enc" "$dir" || exit 1
 done