fixup!: Move checkofficial after export parameters

Signed-off-by: Jackeagle <jackeagle102@gmail.com>
Change-Id: Ia6308bf63c360ce51c1963f3f763e5fc20823620
diff --git a/envsetup.sh b/envsetup.sh
index 03a9414..f875d0b 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -655,7 +655,6 @@
 function lunch()
 {
     local answer
-    checkofficial $target
 
     if [[ $# -gt 1 ]]; then
         echo "usage: lunch [target]" >&2
@@ -739,6 +738,8 @@
         product=
     fi
 
+    checkofficial $target
+
     if [ -z "$product" -o -z "$variant" ]
     then
         echo