Skip to content

Commit b53feb4

Browse files
committed
chore: fix shellcheck SC2319 warning
1 parent 10b9276 commit b53feb4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/soundFileFormats/generateFiles.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,10 @@ do
189189
echo "Generating ${ssize}-bit ${rate}Hz ${channel}-channel ${format} file"
190190
sox -V0 1kHzR440HzLReference_32i96kStereo.wav -b "${ssize}" -c "${channel}" -r "${rate}" "test${ssize}bit${friendlyrate}k${friendlychannel}.${format}"
191191
fi
192-
if [ $? -gt 1 ]
192+
ret=$?
193+
if [ "$ret" -gt 1 ]
193194
then
194-
echo "Error #$?, aborting"
195+
echo "Error #$ret, aborting"
195196
exit 1
196197
fi
197198
done

0 commit comments

Comments
 (0)