diff options
author | Abhinav1997 <abhinav.jhanwar.august2@gmail.com> | 2015-10-18 19:49:13 +0200 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2015-10-20 13:12:13 -0700 |
commit | c3eb1079ea1ee513422cfe16d4c5574a2c1ee7a5 (patch) | |
tree | c6a95cd0e03c7c714ccb31710e94824e9938bb74 /envsetup.sh | |
parent | 3d1c612e5c829a6b621f3bb20f6e361743c094a1 (diff) | |
download | build-c3eb1079ea1ee513422cfe16d4c5574a2c1ee7a5.zip build-c3eb1079ea1ee513422cfe16d4c5574a2c1ee7a5.tar.gz build-c3eb1079ea1ee513422cfe16d4c5574a2c1ee7a5.tar.bz2 |
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: Abhinav1997 <abhinav.jhanwar.august2@gmail.com>
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh index 82b58e6..2f019f9 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -922,7 +922,12 @@ function mmm() case $DIR in showcommands | snod | dist | incrementaljavac | *=*) 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 |