Commit 036e9d10 authored by neil's avatar neil
Browse files

fix compatible for sh

parent 6ed1c718
......@@ -1982,7 +1982,7 @@ _process() {
_accountemail=""
_accountkey=""
_certhome=""
while (( ${#} )); do
while [[ ${#} -gt 0 ]] ; do
case "${1}" in
--help|-h)
......@@ -2247,7 +2247,7 @@ fi
if [[ -z "$1" ]] ; then
showhelp
else
if [[ "$1" == "-"* ]] ; then
if echo "$1" | grep "^-" >/dev/null 2>&1 ; then
_process "$@"
else
"$@"
......
#!/bin/bash
#!/usr/bin/env sh
#
......@@ -12,7 +12,7 @@ CF_Api="https://api.cloudflare.com/client/v4/"
######## Public functions #####################
#Usage: add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
dns-cf-add() {
dns-cf-add(){
fulldomain=$1
txtvalue=$2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment