Browse Source

minor code style adjustments in multideploy script

pull/6241/head
tomo 2 months ago
parent
commit
5c86ace25b
No known key found for this signature in database GPG Key ID: 6826163BFB606E85
  1. 5
      deploy/multideploy.sh

5
deploy/multideploy.sh

@ -101,8 +101,7 @@ _preprocess_deployfile() {
fi fi
done done
if [ -z "$found_file" ];
then
if [ -z "$found_file" ]; 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,7 +227,7 @@ _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")"

Loading…
Cancel
Save