We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6a47d3 + f251532 commit 8289a55Copy full SHA for 8289a55
bin/s3
@@ -1,10 +1,13 @@
1
#!/bin/bash
2
set -e
3
4
-PATH=$HOME/.local/bin:$PATH
+AWS_TARGET_VERSION='2.22.34'
5
6
-if ! [ -x "$(command -v aws)" ]; then
7
- pip install --user awscli
+if ! aws --version 2>/dev/null | grep -q "$AWS_TARGET_VERSION"; then
+ 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 && \
10
+ rm -rf awscliv2.zip aws
11
fi
12
13
aws --region hel1 --endpoint-url https://hel1.your-objectstorage.com s3 "$@"
0 commit comments