From 67b2b500a16dbc4dd9f8b7bbdde5b1fc9dc1ae21 Mon Sep 17 00:00:00 2001 From: Vladimir Bataev Date: Tue, 12 Dec 2023 16:49:40 +0400 Subject: [PATCH] Fix dependencies check Signed-off-by: Vladimir Bataev --- scripts/installers/install_torchaudio_latest.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/installers/install_torchaudio_latest.sh b/scripts/installers/install_torchaudio_latest.sh index 22f71eb9cafd..9e72be5e51d6 100755 --- a/scripts/installers/install_torchaudio_latest.sh +++ b/scripts/installers/install_torchaudio_latest.sh @@ -28,13 +28,18 @@ EOM echo "$INFO_MESSAGE" -for lib in libavdevice ffmpeg sox; do +for lib in libavdevice sox; do if ! grep -q ${lib} <<< "$(ldconfig -p)"; then echo "ERROR: ${lib} not found. Install dependencies before running the script: '${DEPENDENCIES_INSTALL_CMD}'" exit 1 fi done +if ! command -v ffmpeg &> /dev/null; then + echo "ERROR: ffmpeg not found. Install dependencies before running the script: '${DEPENDENCIES_INSTALL_CMD}'" + exit 1 +fi + TORCHAUDIO_REPO=https://github.com/pytorch/audio # expected LATEST_RELEASE=release/*.** LATEST_RELEASE=$(git -c 'versionsort.suffix=-' \