diff --git a/simple-ca.sh b/simple-ca.sh index 631a703..2519de2 100755 --- a/simple-ca.sh +++ b/simple-ca.sh @@ -64,14 +64,7 @@ function make_ca() { return 1 fi CA_FILE_PREFIX="$2" - shift 2 - ;; - --path-len) - if [[ -z "$2" || ! "$2" =~ ^[0-9]+$ ]]; then - echo "ERROR: Invalid value for --path-len. Must be a non-negative integer." >&2 - return 1 - fi - PATHLEN="$2" + PATHLEN=1 shift 2 ;; *)