#!/bin/bash -xe

clean() {
  rm -rf awscli-bundle{,.zip}
}

clean
trap clean EXIT;

if [[ ! -f .bin/aws ]]; then
  wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
  unzip awscli-bundle.zip
  ./awscli-bundle/install -b .bin/aws
fi

#!/bin/bash -xe

clean() {
  rm -rf awscli-bundle{,.zip}
}

clean
trap clean EXIT;

if [[ ! -f .bin/aws ]]; then
  wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
  unzip awscli-bundle.zip
  ./awscli-bundle/install -b .bin/aws
else
  exit 0
fi

Exit 0 if the binary is already there
Exit 0 if the binary is already there
