Merge pull request #12049 from tianon/bundles-latest

Add "bundles/latest" symlink
Upstream-commit: 85f1410a5a46988df0ff0c88d418a4ec0de37064
Component: engine
This commit is contained in:
Jessie Frazelle
2015-04-13 11:11:38 -07:00

View File

@ -263,6 +263,12 @@ main() {
rm -fr bundles/$VERSION && mkdir bundles/$VERSION || exit 1
echo
fi
if [ "$(go env GOHOSTOS)" != 'windows' ]; then
# Windows and symlinks don't get along well
ln -sfT $VERSION bundles/latest
fi
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ $# -lt 1 ]; then
bundles=(${DEFAULT_BUNDLES[@]})