Skip to content

Commit c755f9b

Browse files
committed
aws-cli: add option to surpress unzip output
1 parent f8e7e27 commit c755f9b

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/aws-cli/devcontainer-feature.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)