We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecc5563 commit f251532Copy full SHA for f251532
bin/s3
@@ -3,7 +3,7 @@ set -e
3
4
AWS_TARGET_VERSION='2.22.34'
5
6
-if ! [ -x "$(aws --version | grep -o $AWS_VER)" ]; then
+if ! aws --version 2>/dev/null | grep -q "$AWS_TARGET_VERSION"; then
7
curl -sS "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_TARGET_VERSION}.zip" -o awscliv2.zip && \
8
unzip -q awscliv2.zip && \
9
sudo ./aws/install --update >/dev/null 2>&1 && \
0 commit comments