mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-24 20:38:36 -06:00
fix: Remove extension for mkv
This commit is contained in:
parent
7cc78461f3
commit
25e6944fc9
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
for f in *.mp4 *.mkv; do
|
||||
if [ -f "$f" ]; then
|
||||
h=$(basename "$f" .mp4)
|
||||
h="${f%.*}"
|
||||
echo "Renaming the subtitle (if any) accompanying $h.mp4..."
|
||||
n=$(find . -maxdepth 2 -name "*.srt" -printf '.' | wc -m)
|
||||
if [ $n -eq 1 ] && ! [ -f "$h.srt" ]; then
|
||||
|
|
Loading…
Reference in a new issue