X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=inline;f=bin%2Fcleanup-recode.sh;fp=bin%2Fcleanup-recode.sh;h=3f8213d2d92cd638d66f9e583f1c2def14dbbe75;hb=4a9188e4539b6da57cfb3a85a0cd17babc0f70b5;hp=427cd6db22a3b055827591930c8ea6104f338c02;hpb=5cdb1217074fd86650a33c5e3fd7b605cae40d07;p=dotfiles.git diff --git a/bin/cleanup-recode.sh b/bin/cleanup-recode.sh index 427cd6d..3f8213d 100755 --- a/bin/cleanup-recode.sh +++ b/bin/cleanup-recode.sh @@ -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