Fix cache for replace_face - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 73a00a86e0194d8764b850e49409414b463dd0e7
(DIR) parent 7e36d1bac0c123cad1b5b5a681c62d62fb17b3c2
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sun, 31 Jul 2022 14:03:43 +0200
Fix cache for replace_face
Diffstat:
M ffmpeg-effect | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/ffmpeg-effect b/ffmpeg-effect
@@ -67,6 +67,11 @@ replace_face() {
input="$2"
output="$3"
+ if [ -e "$output" ];
+ then
+ return
+ fi
+
ext="$(printf '%s' "$input" | awk -F. '{print $NF}')"
tmp=/tmp/replace_face_$$.$ext