mirror of https://github.com/zulip/zulip.git
bootstrap-awscli: Leave CWD unchanged.
This commit is contained in:
parent
1b5e058d3b
commit
aabbb2ad10
|
@ -16,13 +16,14 @@ fi
|
|||
|
||||
if [ ! -d "/srv/zulip-aws-tools/v2/$AWS_CLI_VERSION" ]; then
|
||||
mkdir -p /srv/zulip-aws-tools
|
||||
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
|
||||
sha256sum -c awscli.zip.sha256
|
||||
unzip -q awscli.zip
|
||||
(
|
||||
cd /srv/zulip-aws-tools || exit 1
|
||||
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
|
||||
sha256sum -c awscli.zip.sha256
|
||||
unzip -q awscli.zip
|
||||
|
||||
cd ./aws || exit 1
|
||||
./install -i /srv/zulip-aws-tools -b /srv/zulip-aws-tools/bin -u
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue