Skip to content

Commit 20aa81f

Browse files
aws-cli: add option to surpress unzip output (#1210)
* aws-cli: add option to surpress unzip output * Update AWS CLI version to 1.1.3 --------- Co-authored-by: Kaniska <kaniska244@github.com>
1 parent 0292aee commit 20aa81f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/aws-cli/devcontainer-feature.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "aws-cli",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"name": "AWS CLI",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/aws-cli",
66
"description": "Installs the AWS CLI along with needed dependencies. Useful for base Dockerfiles that often are missing required install dependencies like gpg.",
@@ -12,6 +12,11 @@
1212
],
1313
"default": "latest",
1414
"description": "Select or enter an AWS CLI version."
15+
},
16+
"verbose": {
17+
"type": "boolean",
18+
"default": true,
19+
"description": "Suppress verbose output."
1520
}
1621
},
1722
"customizations": {

src/aws-cli/install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ set -e
1313
rm -rf /var/lib/apt/lists/*
1414

1515
VERSION=${VERSION:-"latest"}
16+
VERBOSE=${VERBOSE:-"true"}
1617

1718
AWSCLI_GPG_KEY=FB5DB77FD5C118B80511ADA8A6310ACC4672475C
1819
AWSCLI_GPG_KEY_MATERIAL="-----BEGIN PGP PUBLIC KEY BLOCK-----
@@ -110,7 +111,12 @@ install() {
110111
exit 1
111112
fi
112113

113-
unzip "${scriptZipFile}"
114+
if [ "${VERBOSE}" = "false" ]; then
115+
unzip -q "${scriptZipFile}"
116+
else
117+
unzip "${scriptZipFile}"
118+
fi
119+
114120
./aws/install
115121

116122
# kubectl bash completion

0 commit comments

Comments
 (0)