blissify: Move cleaning commands after breakfast command is initiated.
- Having this command running before breakfast will result execution of default target (aosp_arm64).
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
Change-Id: I741067e0083f0467ba90c7a0f131184be120b603
diff --git a/build/envsetup.sh b/build/envsetup.sh
index 4df40b6..9127fe9 100644
--- a/build/envsetup.sh
+++ b/build/envsetup.sh
@@ -1039,17 +1039,6 @@
# for testing purposes:
shift
done
-
- if [ $clean == "y" ];then
- echo "Cleaning up a bit"
- make clean && make clobber
- fi
-
- if [ $deviceclean == "y" ];then
- echo "Doing some device cleanup"
- make deviceclean
- fi
-
if [ "$1" == "" ]; then
echo "No device name specified. Please use --help to verify correct usage"
return 0
@@ -1063,7 +1052,17 @@
else
breakfast $*
fi
-
+
+ if [ $clean == "y" ];then
+ echo "Cleaning up a bit"
+ make clean && make clobber
+ fi
+
+ if [ $deviceclean == "y" ];then
+ echo "Doing some device cleanup"
+ make deviceclean
+ fi
+
if [ $? -eq 0 ]; then
mka blissify
else