mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
fix compatible for sh
This commit is contained in:
parent
6ed1c718b9
commit
036e9d1074
4
acme.sh
4
acme.sh
@ -1982,7 +1982,7 @@ _process() {
|
|||||||
_accountemail=""
|
_accountemail=""
|
||||||
_accountkey=""
|
_accountkey=""
|
||||||
_certhome=""
|
_certhome=""
|
||||||
while (( ${#} )); do
|
while [[ ${#} -gt 0 ]] ; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
|
||||||
--help|-h)
|
--help|-h)
|
||||||
@ -2247,7 +2247,7 @@ fi
|
|||||||
if [[ -z "$1" ]] ; then
|
if [[ -z "$1" ]] ; then
|
||||||
showhelp
|
showhelp
|
||||||
else
|
else
|
||||||
if [[ "$1" == "-"* ]] ; then
|
if echo "$1" | grep "^-" >/dev/null 2>&1 ; then
|
||||||
_process "$@"
|
_process "$@"
|
||||||
else
|
else
|
||||||
"$@"
|
"$@"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user