From 41cc3f3531dd6c0aac85db0794ca5b07d30ebcd7 Mon Sep 17 00:00:00 2001 From: arnold-keyvalue Date: Mon, 22 Aug 2022 13:55:55 +0530 Subject: [PATCH] update install.sh script --- scripts/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 4d3f2ec..99b2178 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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}"