From 824bbc7d6f9be53da379214769c8d84ecfee5503 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Sat, 27 Mar 2021 23:52:12 +0100 Subject: [PATCH] SIMULATION environment variable now is tested against a string. --- get-tracks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-tracks.sh b/get-tracks.sh index bf7b47a..6e5af79 100755 --- a/get-tracks.sh +++ b/get-tracks.sh @@ -77,7 +77,7 @@ run_ffmpeg(){ local duration=$3 local title=$4 - if [ "${SIMULATION}" -eq 1 ]; then + if [ "${SIMULATION}" = 1 ]; then [ -z "${QUIET}" ] && echo "ffmpeg -loglevel error -ss '$from' -t '$duration' -i '${file}' '${title}'" else [ -z "${QUIET}" ] && echo "ffmpeg -loglevel error -ss '$from' -t '$duration' -i '${file}' '${title}'"