Skip to content

Commit

Permalink
sudo bugfix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mico Papp committed Nov 14, 2023
1 parent 025f367 commit a3a8450
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on Windows, use `Git Bash` as system administrator.

## Manual
```
jssl v1.2
jssl v1.3
Install trusted certificate and check SSL handshake against java keystore.
Usage: jssl <host> <operation> [-p|--port <arg>] [-a|--alias <arg>] [-h|--help] [-v|--version]
<host>: without https:// and port, eg. google.com
Expand Down Expand Up @@ -59,11 +59,11 @@ $ jssl <URL> install

## Supports

| |Java 1.8 | Java 11 | Java 17 |
|---|---|---|---|
| Linux | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark:
| MacOS | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Windows | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| | Java 1.8 | Java 11 | Java 17 |
|---------|--------------------|--------------------|--------------------|
| Linux | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| MacOS | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Windows | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |

## Requirements

Expand Down
10 changes: 5 additions & 5 deletions src/jssl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
### java-ssl-tools (jssl) v1.2
jssl_version="v1.2"
### java-ssl-tools (jssl) v1.3
jssl_version="v1.3"
JVM_VERSION=$(java -version 2>&1 | head -n 1)


SUDO="sudo"
if ! command -v sudo &> /dev/null
SUDO=""
if command -v sudo &> /dev/null
then
SUDO=""
SUDO="sudo"
fi

### To keep the script standalone, source is divided into parts
Expand Down

0 comments on commit a3a8450

Please sign in to comment.