ffmpeg-effect: use variable substitution to find file extension - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 4dca6070b022091b9c930d82cd6216ab3fb70b8d DIR parent dc1a42da2436a97d07f0eaf98baf269e82100b0e HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Fri, 21 Oct 2022 20:31:26 +0200 ffmpeg-effect: use variable substitution to find file extension Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M ffmpeg-effect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/ffmpeg-effect b/ffmpeg-effect @@ -80,7 +80,7 @@ replace_face() { if is_image $input; then - ext="$(printf '%s' "$input" | awk -F. '{print $NF}')" + ext="${input##*.}" tmp=/tmp/replace_face_$$.$ext else tmp="/tmp/replace_face_$$.mkv"