The return code was not checked and the script aborts if the tar command
fails rather processing the errors in the usual manner.

Signed-off-by: Gaetan Nadon <[email protected]>
---
 build.sh |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/build.sh b/build.sh
index 538aeba..1de9c7b 100755
--- a/build.sh
+++ b/build.sh
@@ -398,13 +398,16 @@ process() {
        needs_config=1
     else
         checkfortars $module $component
-        CONFCMD="configure"
-    fi
-
-    if [ X"$SRCDIR" = X ]; then
-        echo "$module${component:+/}$component does not exist, skipping."
-        nonexistent_components="$nonexistent_components 
$module${component:+/}$component"
-        return 0
+        if [ $? -eq 0 ]; then
+           if [ X"$SRCDIR" = X ]; then
+               echo "$module${component:+/}$component does not exist, 
skipping."
+               nonexistent_components="$nonexistent_components 
$module${component:+/}$component"
+               return 0
+           fi
+           CONFCMD="configure"
+        else
+           return 1
+       fi
     fi
 
     old_pwd=`pwd`
-- 
1.7.9.5

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to