From c3928b8cf0a04cff024efd7b371c8980b0fee8d7 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 25 Oct 2023 16:03:10 -0400 Subject: [PATCH] Simplify PNG files detection --- fgen.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fgen.sh b/fgen.sh index 1546f8a..b1bd4e2 100755 --- a/fgen.sh +++ b/fgen.sh @@ -165,9 +165,7 @@ function generate_video() local png_files if which ffmpeg 1> /dev/null 2>&1; then - set +e - png_files=$(ls ${dest}/${dest}-${group}-f*.png 2> /dev/null) - set -e + png_files=$(ls ${dest}/${dest}-${group}-f*.png 2> /dev/null || echo "") if [ x"${png_files}" != x"" ]; then log_dbg "generate_video start" -- 2.20.1