Skip to content

Commit

Permalink
update install.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
arnold-keyvalue committed Aug 22, 2022
1 parent a6a69d2 commit 41cc3f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash
curl -s https://raw.githubusercontent.com/bukukasio/lummo-sqlproxy/master/scripts/install_prerequisites.sh | bash
if which cloud_sql_proxy &>/dev/null
then
{
which lummo-sqlproxy | xargs sudo rm -rf
}
fi
# curl -s https://raw.githubusercontent.com/bukukasio/lummo-sqlproxy/master/scripts/install_prerequisites.sh | bash
LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/bukukasio/lummo-sqlproxy/releases/latest)
LATEST_VERSION_TAG=$(echo $LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
LATEST_VERSION="${LATEST_VERSION_TAG:1}"
Expand Down

0 comments on commit 41cc3f3

Please sign in to comment.