From 83907b50b7272df321b5275add49cc08f1a5da1e Mon Sep 17 00:00:00 2001 From: Nikhil Nandagopal Date: Tue, 8 Sep 2020 11:37:31 +0530 Subject: [PATCH] Update install.sh --- deploy/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deploy/install.sh b/deploy/install.sh index c4c6bc7d72..b7046c39c1 100755 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -303,6 +303,16 @@ echo_contact_support() { } bye() { # Prints a friendly good bye message and exits the script. + curl -s -O --location --request POST 'https://api.segment.io/v1/track' \ + --header 'Authorization: Basic QjJaM3hXRThXdDRwYnZOWDRORnJPNWZ3VXdnYWtFbk06' \ + --header 'Content-Type: application/json' \ + --data-raw '{ + "anonymousId": "anonymousId", + "event": "Installation Exited", + "properties": { + "osEnum": '$desired_os' + } + }' echo -e "\nExiting for now. Bye! \U1F44B\n" exit 1 }