From b53feb4be03cd7b292843f8dabb5eb0241c0dd52 Mon Sep 17 00:00:00 2001 From: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com> Date: Wed, 14 Aug 2024 00:06:06 +0200 Subject: [PATCH] chore: fix shellcheck SC2319 warning --- src/test/soundFileFormats/generateFiles.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/soundFileFormats/generateFiles.sh b/src/test/soundFileFormats/generateFiles.sh index b3b14bc5b7b..fde6b2c2e6c 100755 --- a/src/test/soundFileFormats/generateFiles.sh +++ b/src/test/soundFileFormats/generateFiles.sh @@ -189,9 +189,10 @@ do echo "Generating ${ssize}-bit ${rate}Hz ${channel}-channel ${format} file" sox -V0 1kHzR440HzLReference_32i96kStereo.wav -b "${ssize}" -c "${channel}" -r "${rate}" "test${ssize}bit${friendlyrate}k${friendlychannel}.${format}" fi - if [ $? -gt 1 ] + ret=$? + if [ "$ret" -gt 1 ] then - echo "Error #$?, aborting" + echo "Error #$ret, aborting" exit 1 fi done