This repository was archived by the owner on Feb 27, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55# Set version to latest unless set by user
66if [ -z " $VERSION " ]; then
7- VERSION=" 1.0.1 "
7+ VERSION=" 1.1.2 "
88fi
9+ EXTENSION=" "
910
1011echo " Downloading version ${VERSION} ..."
1112
@@ -14,13 +15,15 @@ UNAME=`uname -a`
1415# Determine platform
1516if [[ $UNAME == * " Darwin" * ]]; then
1617 PLATFORM=" darwin"
17- elif [[ $UNAME == * " Cygwin" * ]]; then
18+ elif [[ ( $UNAME == * MINGW * ) || ( $UNAME == * Cygwin* ) ]]; then
1819 PLATFORM=" windows"
20+ EXTENSION=" .exe"
21+ UNAME=" ${PROCESSOR_ARCHITEW6432} "
1922else
2023 PLATFORM=" linux"
2124fi
2225# Determine architecture
23- if [[ ($UNAME == * x86_64* ) || ($UNAME == * amd64* ) ]]
26+ if [[ ($UNAME == * x86_64* ) || ($UNAME == * amd64* ) || ( $UNAME == * AMD64 * ) ]]
2427then
2528 ARCH=" amd64"
2629else
3033fi
3134
3235# Download binary
33- curl -L -o boot2docker " https://github.com/boot2docker/boot2docker-cli/releases/download/v${VERSION} /boot2docker-v${VERSION} -${PLATFORM} _${ARCH} "
36+ URL=" https://github.com/boot2docker/boot2docker-cli/releases/download/v${VERSION} /boot2docker-v${VERSION} -${PLATFORM} -${ARCH}${EXTENSION} "
37+ echo " Downloading $URL "
38+ curl -L -o " boot2docker${EXTENSION} " " $URL "
3439
3540# Make binary executable
36- chmod +x boot2docker
41+ chmod +x " boot2docker${EXTENSION} "
3742
3843echo " Done."
You can’t perform that action at this time.
0 commit comments