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