#!/bin/sh

# included in the repo because it's only available over http from deis.io

# install current version unless overridden by first command-line argument
cd ~/docker

VERSION=${1:-1.13.2}

if [[ -x ./deis ]]; then
  if [[ "$VERSION" == $(./deis version) ]]; then
    exit 0
  else
    rm ./deis
  fi
fi

# catch errors from here on out
set -e

# determine from whence to download the installer
PLATFORM=`uname | tr '[:upper:]' '[:lower:]'`
DEIS_INSTALLER=${DEIS_INSTALLER:-deis-cli-$VERSION-$PLATFORM-amd64.run}
DEIS_BASE_URL=${DEIS_BASE_URL:-https://s3-us-west-2.amazonaws.com/get-deis}
INSTALLER_URL=$DEIS_BASE_URL/$DEIS_INSTALLER

# download the installer archive to /tmp
curl -f -o /tmp/$DEIS_INSTALLER $INSTALLER_URL

# run the installer
sh /tmp/$DEIS_INSTALLER $INSTALLER_OPTS

# clean up after ourselves
rm -f /tmp/$DEIS_INSTALLER

#!/bin/sh

# included in the repo because it's only available over http from deis.io
# http://deis.io/deis-cli/install.sh

# install current version unless overridden by first command-line argument
VERSION=${1:-1.13.3}

# catch errors from here on out
set -e

# determine from whence to download the installer
PLATFORM=`uname | tr '[:upper:]' '[:lower:]'`
DEIS_INSTALLER=${DEIS_INSTALLER:-deis-cli-$VERSION-$PLATFORM-amd64.run}
DEIS_BASE_URL=${DEIS_BASE_URL:-https://getdeis.blob.core.windows.net/get-deis}
INSTALLER_URL=$DEIS_BASE_URL/$DEIS_INSTALLER

# download the installer archive to /tmp
curl -f -o /tmp/$DEIS_INSTALLER $INSTALLER_URL

# run the installer
sh /tmp/$DEIS_INSTALLER $INSTALLER_OPTS

# clean up after ourselves
rm -f /tmp/$DEIS_INSTALLER

Update deis client install script
Update deis client install script

Older version stopped working
