commit | 475054a16ad57b184fa476c093cf1ce8e9ec3e15 | [log] [tgz] |
---|---|---|
author | Ying Wang <wangying@android.com> | Mon Oct 19 22:44:03 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Oct 19 22:44:03 2015 +0000 |
tree | c760e6063b5f993c5d5f6c7d9618baa720384bcd | |
parent | 7749304741070af8239e02f68d688fc45fd877d1 [diff] | |
parent | a72a6e7c72143bdc5b88e8143ccf784563414030 [diff] |
Merge "envsetup: Show error when supplied dir isn't present with mmm"
diff --git a/envsetup.sh b/envsetup.sh index 2ff83f7..c8152b6 100644 --- a/envsetup.sh +++ b/envsetup.sh
@@ -754,7 +754,12 @@ 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