Return the original failed exit code and not that of 'echo'.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35710 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matt Madia 2010-03-01 21:58:27 +00:00
parent 1d69d5aed5
commit 91db81894a
1 changed files with 6 additions and 4 deletions

View File

@ -223,15 +223,17 @@ function InstallBroadcom43xx()
PreFirmwareInstallation
BuildBroadcomFWCutter
if [ $? -gt 0 ] ; then
returnCode=$?
if [ $returnCode -gt 0 ] ; then
echo "...failed. ${driver}'s firmware will not be installed."
return $?
return $returnCode
fi
CutAndInstallBroadcomFirmware
if [ $? -gt 0 ] ; then
returnCode=$?
if [ $returnCode -gt 0 ] ; then
echo "...failed. ${driver}'s firmware will not be installed."
return $?
return $returnCode
fi
PostFirmwareInstallation