Skip to content

Commit ea02cea

Browse files
ndelvallegillchristian
authored andcommitted
Updata install logs
1 parent c782b3e commit ea02cea

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

install.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ red="\033[31m"
88
green="\033[32m"
99
cyan="\033[36m"
1010

11-
# DOWNLOAD_URL="https://github.com/Huemul/thresh/releases/download/alpha_v4/thresh-x86-64-linux"
12-
DOWNLOAD_URL="https://github.com/moneditas/api/releases/download/latest/moneditas-x86-64-linux"
11+
DOWNLOAD_URL="https://github.com/Huemul/thresh/releases/download/alpha_v4/thresh_x86-64-linux"
1312

1413
# the following function was brought from https://yarnpkg.com/install.sh
1514
# https://github.com/yarnpkg/yarn/blob/master/LICENSE
@@ -56,13 +55,13 @@ detect_profile() {
5655
}
5756

5857
install_thresh() {
59-
local INSTALL_DIR="${HOME}/.thresh"
60-
local INSTALL_FILE="${INSTALL_DIR}/bin/thresh"
58+
local INSTALL_DIR="${HOME}/.thresh/bin"
59+
local INSTALL_FILE="${INSTALL_DIR}/thresh"
6160

6261
# Do not re create the folder if it already exists, the user might have sensitive
6362
# configuration on it.
64-
test -d "$INSTALL_DIR" || mkdir -p "$INSTALL_DIR/bin/"
65-
curl --location --show-error $DOWNLOAD_URL --output "$INSTALL_FILE"
63+
test -d "$INSTALL_DIR" || mkdir -p "$INSTALL_DIR"
64+
curl --location --show-error --progress-bar $DOWNLOAD_URL --output "$INSTALL_FILE"
6665
chmod +x "$INSTALL_FILE"
6766

6867
# Add Thresh bin to PATH
@@ -97,7 +96,7 @@ install_thresh() {
9796
exit 1;
9897
)
9998

100-
printf "$green> Successfully installed Thresh $version! Please open another terminal where the \`thresh\` command will now be available.$reset\n"
99+
printf "$green> Successfully installed Thresh $version! Please source the profile or open another terminal where the \`thresh\` command will now be available.$reset\n"
101100
fi
102101
}
103102

0 commit comments

Comments
 (0)