Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a72a6e7c authored by Abhinav1997's avatar Abhinav1997
Browse files

envsetup: Show error when supplied dir isn't present with mmm



When a directory isn't present with mmm, don't show "No Android.mk present", rather show that the directory isn't present

Change-Id: I7259a60012c6f30c470daa60d5a5097d01ffc4c7
Signed-off-by: default avatarAbhinav1997 <abhinav.jhanwar.august2@gmail.com>
parent 4f6f0f92
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -754,7 +754,12 @@ function mmm()
                case $DIR in
                  showcommands | snod | dist | *=*) ARGS="$ARGS $DIR";;
                  GET-INSTALL-PATH) GET_INSTALL_PATH=$DIR;;
                  *) echo "No Android.mk in $DIR."; return 1;;
                  *) if [ -d $DIR ]; then
                         echo "No Android.mk in $DIR.";
                     else
                         echo "Couldn't locate the directory $DIR";
                     fi
                     return 1;;
                esac
            fi
        done