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
+6 -4
View File
@@ -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