diff --git a/ansible/roles/core-net/remnawave/templates/bootstrap-panel.sh.j2 b/ansible/roles/core-net/remnawave/templates/bootstrap-panel.sh.j2 index 06e4473..fd6ee08 100644 --- a/ansible/roles/core-net/remnawave/templates/bootstrap-panel.sh.j2 +++ b/ansible/roles/core-net/remnawave/templates/bootstrap-panel.sh.j2 @@ -18,7 +18,7 @@ api() { local path="$1"; shift local tmp code tmp=$(mktemp) - if [ "${#AUTH_HDR[@]}" -gt 0 ]; then + if [ -n "${AUTH_HDR[*]:-}" ]; then code=$("${CURL[@]}" -o "$tmp" -w '%{http_code}' -X "$method" "${AUTH_HDR[@]}" \ -H "Content-Type: application/json" "${API_BASE}${path}" "$@") || true else