aboutsummaryrefslogtreecommitdiff
path: root/src/aws-cli
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2022-06-03 17:46:25 +0300
committerGitHub <noreply@github.com>2022-06-03 17:46:25 +0300
commitc12a205ab8e195541acfe0cb654b4888e16ea05c (patch)
treea1a45ac7dec9f31fa62972a65414b6d6fd1fd60d /src/aws-cli
parent283b8e1f8f5dec9e54199c107e772ce56683769e (diff)
Pass options via environment variables (#39)
* up to docker-in-docker converted * first pass at the rest of the features (and bash linting and updated CLI * move shell linter to own file * rename feature.json -> devcontainer-feature.json * continue on error * continue on error in right spot * formatting * fix AZ_VERSION * update python * restore variable name * update linter actions, fix dind/dfd/desktop scripts, add test-scenaerios * add tree because I like tree * glob for shell linter * fix test-scenarios * shell linter * more shell helper
Diffstat (limited to 'src/aws-cli')
-rw-r--r--src/aws-cli/devcontainer-feature.json (renamed from src/aws-cli/feature.json)0
-rwxr-xr-xsrc/aws-cli/install.sh9
2 files changed, 4 insertions, 5 deletions
diff --git a/src/aws-cli/feature.json b/src/aws-cli/devcontainer-feature.json
index ee1df10..ee1df10 100644
--- a/src/aws-cli/feature.json
+++ b/src/aws-cli/devcontainer-feature.json
diff --git a/src/aws-cli/install.sh b/src/aws-cli/install.sh
index 0d204de..b2566c9 100755
--- a/src/aws-cli/install.sh
+++ b/src/aws-cli/install.sh
@@ -6,12 +6,11 @@
#
# Docs: https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/awscli.md
# Maintainer: The VS Code and Codespaces Teams
-#
-# Syntax: ./awscli-debian.sh [AWS CLI version]
set -e
-AWSCLI_VERSION=${1:-"latest"}
+VERSION=${VERSION:-"latest"}
+
AWSCLI_GPG_KEY=FB5DB77FD5C118B80511ADA8A6310ACC4672475C
AWSCLI_GPG_KEY_MATERIAL="-----BEGIN PGP PUBLIC KEY BLOCK-----
@@ -108,8 +107,8 @@ install() {
local scriptSigFile=awscli.sig
# See Linux install docs at https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
- if [ "${AWSCLI_VERSION}" != "latest" ]; then
- local versionStr=-${AWSCLI_VERSION}
+ if [ "${VERSION}" != "latest" ]; then
+ local versionStr=-${VERSION}
fi
architecture=$(dpkg --print-architecture)
case "${architecture}" in