[deployment] fix awscli install, error handling

pull/235/head
phahulin 7 years ago committed by Paul Schoenfelder
parent 5bdea742f0
commit edd0467a23
  1. 9
      bin/deploy

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
set -e
# Log a timestamped message to the console
function log() {
@ -101,11 +101,8 @@ CHAINS="$(echo "$CHAINS" | tr ',' '\n')"
# Install AWS CLI
if ! which aws >/dev/null; then
log "Installing AWS CLI.."
mkdir -p ~/bin
wget "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -b ~/bin/aws
export PATH=$HOME/bin:$PATH
pip install awscli --upgrade --user
export PATH=$HOME/.local/bin:$PATH
log "Install completed successfully!"
fi

Loading…
Cancel
Save