mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-14 20:22:13 +08:00
minor code style adjustments in multideploy script
This commit is contained in:
@@ -101,8 +101,7 @@ _preprocess_deployfile() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -z "$found_file" ];
|
if [ -z "$found_file" ]; then
|
||||||
then
|
|
||||||
_err "Deploy file not found. Go to https://github.com/acmesh-official/acme.sh/wiki/deployhooks#36-deploying-to-multiple-services-with-the-same-hooks to see how to create one."
|
_err "Deploy file not found. Go to https://github.com/acmesh-official/acme.sh/wiki/deployhooks#36-deploying-to-multiple-services-with-the-same-hooks to see how to create one."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -228,9 +227,9 @@ _deploy_services() {
|
|||||||
_debug3 "Deploy file" "$_deploy_file"
|
_debug3 "Deploy file" "$_deploy_file"
|
||||||
|
|
||||||
_tempfile=$(mktemp)
|
_tempfile=$(mktemp)
|
||||||
trap "rm -f $_tempfile" EXIT
|
trap 'rm -f $_tempfile' EXIT
|
||||||
|
|
||||||
yq e '.services[].name' "$_deploy_file" > "$_tempfile"
|
yq e '.services[].name' "$_deploy_file" >"$_tempfile"
|
||||||
_debug3 "Services" "$(cat "$_tempfile")"
|
_debug3 "Services" "$(cat "$_tempfile")"
|
||||||
|
|
||||||
_failedServices=""
|
_failedServices=""
|
||||||
@@ -246,7 +245,7 @@ _deploy_services() {
|
|||||||
_failedCount=$((_failedCount + 1))
|
_failedCount=$((_failedCount + 1))
|
||||||
fi
|
fi
|
||||||
_clear_envs "$_envs"
|
_clear_envs "$_envs"
|
||||||
done 3< "$_tempfile"
|
done 3<"$_tempfile"
|
||||||
|
|
||||||
_debug3 "Failed services" "$_failedServices"
|
_debug3 "Failed services" "$_failedServices"
|
||||||
_debug2 "Failed count" "$_failedCount"
|
_debug2 "Failed count" "$_failedCount"
|
||||||
|
|||||||
Reference in New Issue
Block a user