From 9dd636f4c491d4f6df0972c91718c9d42c5d2f00 Mon Sep 17 00:00:00 2001 From: Erfan Date: Tue, 10 Sep 2024 16:30:23 +0330 Subject: [PATCH] Fix: install command and add --version --- README.md | 2 +- essl.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 506ef1e..31ec405 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ESSL is a script to quickly obtain SSL certificates for your domains. It support 1. **Download and Install the Script:** ```bash - sudo bash -c "$(curl -sL https://raw.githubusercontent.com/erfjab/ESSL/master/essl.sh) --install" + sudo bash -c "$(curl -sL https://raw.githubusercontent.com/erfjab/ESSL/master/essl.sh)" --install ``` 2. **Run the Script:** diff --git a/essl.sh b/essl.sh index 5cbe00c..84c84dc 100644 --- a/essl.sh +++ b/essl.sh @@ -148,6 +148,7 @@ Commands: --install Install the ESSL script. --upgrade Upgrade the ESSL script to the latest version. --help Show this help message. + --version Show script version Examples: essl user@example.com example.com /etc/ssl/certs @@ -178,7 +179,10 @@ main() { show_help exit 0 ;; - esac + --version|-v) + print "v3.0.1" + exit 0 + ;;esac # Check if user provided enough arguments for SSL installation if [ $# -lt 3 ]; then