From 526b510034489712b897c32da4b97494b5fc1922 Mon Sep 17 00:00:00 2001 From: Corbin Davenport Date: Fri, 22 Jan 2021 17:56:55 -0500 Subject: [PATCH] Remove debugging log messages, add exit webpage --- install.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 6eef519..1acdd92 100755 --- a/install.sh +++ b/install.sh @@ -57,8 +57,6 @@ _install_ini() { # Function for adding Nexus Tools directory to $PATH _add_path() { if [[ ":$PATH:" == *":$DIR:"* ]]; then - echo $DIR - echo $PATH # Nexus Tools directory already in $PATH echo "[ OK ] $DIR/ is already in PATH." else @@ -103,8 +101,17 @@ _analytics() { fi } +# Function for opening completion webpage +_open_webpage() { + if [ "$OS" = "Darwin" ]; then + open "https://corbin.io/nexus-tools-exit.html" &>/dev/null & + else + xdg-open "https://corbin.io/nexus-tools-exit.html" &>/dev/null & + fi +} + # Start the script -echo "[INFO] Nexus Tools 4.5.1" +echo "[INFO] Nexus Tools 4.6" # Check that required applications are installed if ! [ -x "$(command -v curl)" ]; then @@ -231,7 +238,7 @@ else fi # All done +_open_webpage echo "[INFO] Installation complete! Open a new Terminal window to apply changes." -echo "[INFO] Donate to support development: bit.ly/donatenexustools or patreon.com/corbindavenport" echo " " exit