Skip to content

Commit 518533c

Browse files
Merge pull request #13569 from Swiftb0y/chore/fix-shellcheck
chore: fix shellcheck SC2319 warning
2 parents 10b9276 + b53feb4 commit 518533c

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)