Skip to content

Commit

Permalink
chore: fix shellcheck SC2319 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Aug 13, 2024
1 parent 10b9276 commit b53feb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/soundFileFormats/generateFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b53feb4

Please sign in to comment.