Skip to content

Commit 934d571

Browse files
author
Nicolas Huray
committed
Print output of awscli installation
1 parent 94d2782 commit 934d571

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ fi
8989

9090
# Check AWS is installed
9191
if ! type_exists 'awscli'; then
92-
set -e
9392
h1 "Installing AWS CLI"
9493
INSTALL_AWSCLI="sudo pip install awscli"
9594
info "$INSTALL_AWSCLI"
9695
INSTALL_AWSCLI_OUTPUT=$($INSTALL_AWSCLI 2>&1)
97-
info "$INSTALL_AWSCLI_OUTPUT"
96+
if [ $? -ne 0 ]; then
97+
warn "$INSTALL_AWSCLI_OUTPUT"
98+
exit 1
99+
fi
98100
success "Installing AWS CLI (`aws --version`) succeeded"
99-
set +e
100101
fi
101102

102103
# ----- Configure -----

wercker-step.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: aws-code-deploy
2-
version: 0.0.21
2+
version: 0.0.22
33
description: Deploy applications with AWS Code Deploy
44
keywords:
55
- aws

0 commit comments

Comments
 (0)