Skip to content

Commit

Permalink
Fix awscli packaging script
Browse files Browse the repository at this point in the history
[#166977882]

Co-authored-by: Diego Lemos <[email protected]>
  • Loading branch information
FelisiaM and dlresende committed Jun 28, 2019
1 parent 89c2639 commit 1e91d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/service-backup_aws-cli/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

set -e

: "${PYTHON:-/var/vcap/packages/service-backup_python/bin/python3}"
: "${PYTHON:=/var/vcap/packages/service-backup_python/bin/python3}"

unzip "aws-cli/awscli-bundle-1.16.189.zip"
"$PYTHON" ./awscli-bundle/install -i "$BOSH_INSTALL_TARGET"
8 changes: 4 additions & 4 deletions scripts/bump-awscli-to
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

: "${TMPDIR:-$(mktemp -d)}"
: "${TMPDIR:=$(mktemp -d)}"

RELEASE_DIR="$(cd "$(dirname "$0")/.." && pwd)"

Expand All @@ -22,12 +22,14 @@ cat > "$RELEASE_DIR/packages/service-backup_aws-cli/packaging" << EOF
set -e
: "\${PYTHON:-/var/vcap/packages/service-backup_python/bin/python3}"
: "\${PYTHON:=/var/vcap/packages/service-backup_python/bin/python3}"
unzip "aws-cli/awscli-bundle-$AWSCLI_VERSION.zip"
"\$PYTHON" ./awscli-bundle/install -i "\$BOSH_INSTALL_TARGET"
EOF

chmod +x "$RELEASE_DIR/packages/service-backup_aws-cli/packaging"

cat > "$RELEASE_DIR/packages/service-backup_aws-cli/spec" << EOF
# Copyright (C) 2016-Present Pivotal Software, Inc. All rights reserved.
# This program and the accompanying materials are made available under the terms of the under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Expand All @@ -45,5 +47,3 @@ files:
- aws-cli/awscli-bundle-$AWSCLI_VERSION.zip
EOF


chmod +x "$RELEASE_DIR/packages/service-backup_aws-cli/packaging"

0 comments on commit 1e91d52

Please sign in to comment.