Also remove the trailing : if it is present

Change-Id: Icdbc197803d0f759a4656a2bc2182216d14997b3
This commit is contained in:
Kristian Monsen 2011-04-15 15:43:23 +01:00
parent 6bb42fb0a6
commit f6cb2d3ec9
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ function setpaths()
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