mirror of https://github.com/zulip/zulip.git
bootstrap-awscli: Set -eu, for if this is run standalone.
The existing callsites of this are via `source` or being inline'd into the startup of a new host; in both of these cases, the surrounding script is already `set -eu`. However, if run as a standalone tool, it should also configure itself to catch checksum failures and other problems.
This commit is contained in:
parent
7fcd173ec3
commit
0628c5d817
|
@ -1,5 +1,7 @@
|
|||
# shellcheck shell=bash
|
||||
|
||||
set -eu
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
AWS_CLI_VERSION="2.4.7"
|
||||
|
@ -14,7 +16,7 @@ fi
|
|||
|
||||
if [ ! -d "/srv/zulip-aws-tools/v2/$AWS_CLI_VERSION" ]; then
|
||||
mkdir -p /srv/zulip-aws-tools
|
||||
cd /srv/zulip-aws-tools || exit 1
|
||||
cd /srv/zulip-aws-tools
|
||||
rm -rf awscli.zip awscli.zip.sha256 aws/
|
||||
curl -fL "https://awscli.amazonaws.com/awscli-exe-linux-$ARCH-$AWS_CLI_VERSION.zip" -o awscli.zip
|
||||
echo "$AWS_CLI_SHA awscli.zip" >awscli.zip.sha256
|
||||
|
|
Loading…
Reference in New Issue