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:
@@ -223,15 +223,17 @@ function InstallBroadcom43xx()
|
|||||||
PreFirmwareInstallation
|
PreFirmwareInstallation
|
||||||
|
|
||||||
BuildBroadcomFWCutter
|
BuildBroadcomFWCutter
|
||||||
if [ $? -gt 0 ] ; then
|
returnCode=$?
|
||||||
|
if [ $returnCode -gt 0 ] ; then
|
||||||
echo "...failed. ${driver}'s firmware will not be installed."
|
echo "...failed. ${driver}'s firmware will not be installed."
|
||||||
return $?
|
return $returnCode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CutAndInstallBroadcomFirmware
|
CutAndInstallBroadcomFirmware
|
||||||
if [ $? -gt 0 ] ; then
|
returnCode=$?
|
||||||
|
if [ $returnCode -gt 0 ] ; then
|
||||||
echo "...failed. ${driver}'s firmware will not be installed."
|
echo "...failed. ${driver}'s firmware will not be installed."
|
||||||
return $?
|
return $returnCode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PostFirmwareInstallation
|
PostFirmwareInstallation
|
||||||
|
|||||||
Reference in New Issue
Block a user