From 4a9188e4539b6da57cfb3a85a0cd17babc0f70b5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 28 Jan 2024 23:56:48 +0300 Subject: [PATCH] Feat(bin/cleanup-recode.sh): Default is the current directory --- bin/cleanup-recode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5