1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2025-04-11 05:36:04 -05:00

fix: Allow 3 letter lang codes

This commit is contained in:
Sayantan Santra 2025-03-01 01:15:30 -06:00
parent 04ba04620a
commit d84cd484d9
Signed by: SinTan1729
GPG key ID: 0538DD402EA50898

View file

@ -14,7 +14,7 @@ process_file () {
else
mkdir "$without_ext"
mv "$filename" "$without_ext/"
find . -type f -regextype posix-egrep -iregex "\./$without_ext(\.[a-z]{2})?\.srt" \
find . -type f -regextype posix-egrep -iregex "\./$without_ext(\.[a-z]{2,3})?\.srt" \
-exec mv "{}" "$without_ext/" \;
fi
}