mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-17 18:02:46 +00:00
Fixup bashism
This commit is contained in:
parent
dc86b605fe
commit
0ed30db1d8
@ -26,14 +26,12 @@ dns_octodns_add() {
|
|||||||
|
|
||||||
#save the providers list to the account conf file.
|
#save the providers list to the account conf file.
|
||||||
_saveaccountconf OCTODNS_PROVIDERS "$OCTODNS_PROVIDERS"
|
_saveaccountconf OCTODNS_PROVIDERS "$OCTODNS_PROVIDERS"
|
||||||
return 1
|
|
||||||
|
|
||||||
IFS='_' read -r -a used_providers <<< "$OCTODNS_PROVIDERS"
|
for element in $(echo "$OCTODNS_PROVIDERS" | tr "_" ' '); do
|
||||||
for element in "${used_providers[@]}"
|
|
||||||
do
|
|
||||||
_debug element "$element"
|
_debug element "$element"
|
||||||
sourcecommand="$_SUB_FOLDER_DNSAPI/dns_${element}.sh"
|
sourcecommand="$_SUB_FOLDER_DNSAPI/dns_${element}.sh"
|
||||||
|
|
||||||
|
# shellcheck disable=SC1090
|
||||||
if ! . "$sourcecommand"; then
|
if ! . "$sourcecommand"; then
|
||||||
_err "Load file $sourcecommand error. Please check your api file and try again."
|
_err "Load file $sourcecommand error. Please check your api file and try again."
|
||||||
return 1
|
return 1
|
||||||
@ -44,7 +42,7 @@ dns_octodns_add() {
|
|||||||
$addcommand "$fulldomain" "$txtvalue"
|
$addcommand "$fulldomain" "$txtvalue"
|
||||||
done
|
done
|
||||||
|
|
||||||
_info "Finished adding records via octoDNS"
|
_info "Finished adding records via octoDNS API"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -64,12 +62,11 @@ dns_octodns_rm() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IFS='_' read -r -a used_providers <<< "$OCTODNS_PROVIDERS"
|
for element in $(echo "$OCTODNS_PROVIDERS" | tr "_" ' '); do
|
||||||
for element in "${used_providers[@]}"
|
|
||||||
do
|
|
||||||
_debug element "$element"
|
_debug element "$element"
|
||||||
sourcecommand="$_SUB_FOLDER_DNSAPI/dns_${element}.sh"
|
sourcecommand="$_SUB_FOLDER_DNSAPI/dns_${element}.sh"
|
||||||
|
|
||||||
|
# shellcheck disable=SC1090
|
||||||
if ! . "$sourcecommand"; then
|
if ! . "$sourcecommand"; then
|
||||||
_err "Load file $sourcecommand error. Please check your api file and try again."
|
_err "Load file $sourcecommand error. Please check your api file and try again."
|
||||||
return 1
|
return 1
|
||||||
@ -80,7 +77,7 @@ dns_octodns_rm() {
|
|||||||
$rmcommand "$fulldomain" "$txtvalue"
|
$rmcommand "$fulldomain" "$txtvalue"
|
||||||
done
|
done
|
||||||
|
|
||||||
_info "Finished deleting records via octoDNS"
|
_info "Finished deleting records via octoDNS API"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user