Skip to content

Commit

Permalink
Merge pull request #36 from gabrielpadilh4/curl_bug
Browse files Browse the repository at this point in the history
Removed wget references and replaced to curl
  • Loading branch information
gabrielpadilh4 authored Dec 22, 2023
2 parents 6c89a63 + df9acec commit c07be4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ Command output example as server:
## Installation

Use the following command to get the `ssl-handshake-debugger` installed on your machine:
```sh
wget -qO- https://raw.githubusercontent.com/gabrielpadilh4/ssl-handshake-debugger/main/install.sh | sh
```

Alternatively, it can be installed through using `curl` as well:

```sh
sh <(curl -s https://raw.githubusercontent.com/gabrielpadilh4/ssl-handshake-debugger/main/install.sh)
```
Expand Down
7 changes: 4 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function display_error() {

# Verify whether 'wget' and 'unzip' exists

if ! which wget 2> /dev/null; then
display_error "'wget' has not been found in the system. Please install the package first to proceed."
if ! which curl 2> /dev/null; then
display_error "'curl' has not been found in the system. Please install the package first to proceed."

elif ! which unzip 2> /dev/null; then
display_error "'unzip' has not been found in the system. Please install the package first to proceed."
Expand All @@ -40,7 +40,8 @@ fi

# Download the application archive and extract it to the installation directory
echo "Downloading and extracting the application..."
wget -q -O /tmp/$ZIP_DOWNLOAD_FILE_NAME "$DOWNLOAD_URL" && unzip -o /tmp/$ZIP_DOWNLOAD_FILE_NAME -d "$INSTALL_DIR" || display_error "Failed to donwload and extract ssl-handshake-debugger"
curl -s "$DOWNLOAD_URL" -L -o /tmp/$ZIP_DOWNLOAD_FILE_NAME && unzip -qo /tmp/$ZIP_DOWNLOAD_FILE_NAME -d "$INSTALL_DIR" || display_error "Failed to download and extract ssl-handshake-debugger"
rm -rf /tmp/$ZIP_DOWNLOAD_FILE_NAME

# Add the application's bin directory to the PATH
echo "Updating PATH to include the application..."
Expand Down

0 comments on commit c07be4f

Please sign in to comment.