commit | f6cb2d3ec9b44a3828078a478a2ce3ef13f19a17 | [log] [tgz] |
---|---|---|
author | Kristian Monsen <kristianm@google.com> | Fri Apr 15 15:43:23 2011 +0100 |
committer | Kristian Monsen <kristianm@google.com> | Fri Apr 15 16:19:48 2011 +0100 |
tree | fe6c0d0369510f074ce88beb94412b69612bdf07 | |
parent | 6bb42fb0a6ca511bf78e95a2e6318fae76576913 [diff] |
Also remove the trailing : if it is present Change-Id: Icdbc197803d0f759a4656a2bc2182216d14997b3
diff --git a/envsetup.sh b/envsetup.sh index ebde85c..bbc345a 100644 --- a/envsetup.sh +++ b/envsetup.sh
@@ -100,7 +100,8 @@ export PATH=${PATH/$ANDROID_BUILD_PATHS/} fi if [ -n $ANDROID_PRE_BUILD_PATHS ] ; then - export PATH=${PATH/$ANDROID_PRE_BUILD_PATHS/} + shopt -s extglob + export PATH=${PATH/$ANDROID_PRE_BUILD_PATHS?(:)/} fi # and in with the new