From 572f1550ebfc2008ca4b790de23e9664372aaaf2 Mon Sep 17 00:00:00 2001 From: phone Date: Tue, 28 Nov 2023 03:16:53 +0300 Subject: [PATCH] transcode : always output in the current dir. --- .config/bash/module/transcode.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/bash/module/transcode.sh b/.config/bash/module/transcode.sh index 82624bc..c08d072 100644 --- a/.config/bash/module/transcode.sh +++ b/.config/bash/module/transcode.sh @@ -30,9 +30,8 @@ transcode() # Define context names and status. local from="${target##*.}" local to="${format}" - local output="${target#../}" - output="${output%.*}" - output="${output}.${to}" + local output="${target##*/}" + output="${output%.*}.${to}" local status="[${count}/${total}] ${target} -> ${output}" # Show status.