cgapps / vendor_google

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minor code cleanup: for review

pete4abw opened this issue · comments

Just some cleanup of unnecessary duplicate error code. exit 0 only occurs one place. Everything else is an error.

diff --git a/build/gapps.sh b/build/gapps.sh
index b800cf2..2528f68 100644
--- a/build/gapps.sh
+++ b/build/gapps.sh
@@ -100,15 +100,8 @@ if [ "$LASTRETURN" == 0 ]; then
printdone "Build completed: $OUT/$GARCH/$BUILDZIP"
printdone " md5: $GMD5"
exit 0

  •    else
    
  •        printerr "Build failed, check $GLOG"
    
  •        exit 1
     fi
    
  • else
  •    printerr "Build failed, check $GLOG"
    
  •    exit 1
    
    fi
    -else
  • printerr "Build failed, check $GLOG"
  • exit 1
    fi
    +printerr "Build failed, check $GLOG"
    +exit 1
commented

Partially merged in 15.08