From 14b85d6c3254ac3b7584bc2bb775b81089b60e39 Mon Sep 17 00:00:00 2001 From: desktop Date: Fri, 3 Nov 2023 23:24:25 +0300 Subject: [PATCH] vdl : add checks for ffmpeg and ffprobe. --- .linux/bash/module/vdl.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.linux/bash/module/vdl.sh b/.linux/bash/module/vdl.sh index cc30475..edeb6d4 100644 --- a/.linux/bash/module/vdl.sh +++ b/.linux/bash/module/vdl.sh @@ -2,6 +2,12 @@ # Usage: vdl [LINK] vdl() { + # Check that ffmpeg and ffprobe are available. + if [[ "$(ffmpeg -version)" = "" ]] || [[ "$(ffprobe -version)" = "" ]]; then + echo -e "${color_red}ffmpeg and ffprobe are required.${color_default}" + return 2 + fi + local target="${@}" # What to download/update. # If no [LINK] provided, try to read from `src.txt`.