Quick Patch

This commit is contained in:
Steven Zhu authored and GitHub committed 2025-09-27 17:37:37 -04:00
1 parent b244c76dd5
commit 80748b9fe0
1 file changed
+2 -3
+2 -3
View File
@@ -5846,15 +5846,14 @@ list_profiles() {
_l_server_name="$(_getCAShortName "$_l_server_url")"
_info "Fetching profiles from $_l_server_name ($_l_server_url)..."
# _initAPI fetches the directory, so we just need to parse its response.
response=$(_get "$_l_server_url" "" 10)
if [ "$?" != "0" ]; then
_err "Failed to connect to CA directory: $_l_server_url"
return 1
fi
# Isolate the profiles object using the script's regex tool
profiles_json=$(echo "$response" | _egrep_o '"profiles" *: *\{[^\}]*\}')
normalized_response=$(echo "$response" | _normalizeJson)
profiles_json=$(echo "$normalized_response" | _egrep_o '"profiles" *: *\{[^\}]*\}')
if [ -z "$profiles_json" ]; then
_info "The CA '$_l_server_name' does not publish certificate profiles via its directory endpoint."
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.