From: Oleg Broytman Date: Sun, 28 Jan 2024 20:56:48 +0000 (+0300) Subject: Feat(bin/cleanup-recode.sh): Default is the current directory X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=4a9188e4539b6da57cfb3a85a0cd17babc0f70b5;p=dotfiles.git Feat(bin/cleanup-recode.sh): Default is the current directory --- 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