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.