Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NafiAsib committed Mar 20, 2024
1 parent f6fcfae commit d98baf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/localstack/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ if [ "$(uname -m)" = "aarch64" ]; then ARCH=arm64; fi

install_localstack() {
echo "Installing Localstack..."
LATEST_VERSION=curl https://api.github.com/repos/localstack/localstack/releases/latest | grep -i "tag_name" | awk -F '"' '{print $4}' | sed 's/v//g'
LATEST_VERSION=$(curl https://api.github.com/repos/localstack/localstack/releases/latest | grep -i "tag_name" | awk -F '"' '{print $4}' | sed 's/v//g')
curl -Lo localstack-cli-${LATEST_VERSION}-linux-${ARCH}-onefile.tar.gz \
https://github.com/localstack/localstack-cli/releases/download/v${LATEST_VERSION}/localstack-cli-${LATEST_VERSION}-linux-${ARCH}-onefile.tar.gz
tar xvzf localstack-cli-3.2.0-linux-*-onefile.tar.gz -C /usr/local/bin
tar xvzf localstack-cli-${LATEST_VERSION}-linux-*-onefile.tar.gz -C /usr/local/bin
}

install_localstack

0 comments on commit d98baf7

Please sign in to comment.