From 91db81894a59584d56769216b9c6c8aae26a608e Mon Sep 17 00:00:00 2001 From: Matt Madia Date: Mon, 1 Mar 2010 21:58:27 +0000 Subject: [PATCH] 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 --- data/bin/install-wifi-firmwares.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/data/bin/install-wifi-firmwares.sh b/data/bin/install-wifi-firmwares.sh index 414ccf9009..97534ef3c1 100755 --- a/data/bin/install-wifi-firmwares.sh +++ b/data/bin/install-wifi-firmwares.sh @@ -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