From d8376bb9d3cd3c20ac15fb6b5c497f43a2dd9714 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 12 Nov 2023 23:04:02 -0600 Subject: [PATCH] Update certs.inc --- inc/certs.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/certs.inc b/inc/certs.inc index 2fba72c2..8788baf2 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -316,11 +316,11 @@ LISTCERTS(){ [[ "$(declare -p CHECKCERT_DOMAINS)" =~ "declare -a" ]] && [ "${CHECKCERT_DOMAINS[${SUBJECT}]}" = "" ] && monitored='-' || monitored="Yes" editc=0 until [ "${editc^}" = "C" ]; do - echo -e "\033[K${idsCL[White]} Expires: ${idsCL[Cyan]}${idsST[Bold]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}" - echo -e "\033[K${idsCL[White]} Cert Common Name: ${idsCL[Cyan]}${idsST[Bold]}${SUBJECT}${idsST[Reset]}" + echo -e "\033[K ${idsCL[White]} Expires: ${idsCL[Cyan]}${idsST[Bold]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}" + echo -e "\033[K ${idsCL[White]} Cert Common Name: ${idsCL[Cyan]}${idsST[Bold]}${SUBJECT}${idsST[Reset]}" echo - echo -e "\033[K1) ${idsCL[White]}Cert Alt. Names: ${idsCL[Cyan]}${idsST[Bold]}${SUBJECTNAMES//,/, }${idsST[Reset]}" - echo -e "\033[K2) ${idsCL[White]}Monitored: ${idsCL[Cyan]}${idsST[Bold]}${monitored}${idsST[Reset]}" + echo -e "\033[K ${idsCL[Green]}1) ${idsCL[White]}Cert Alt. Names: ${idsCL[Cyan]}${idsST[Bold]}${SUBJECTNAMES//,/, }${idsST[Reset]}" + echo -e "\033[K ${idsCL[Green]}2) ${idsCL[White]}Monitored: ${idsCL[Cyan]}${idsST[Bold]}${monitored}${idsST[Reset]}" if [ "${editc}" != "s" ]; then echo -e "\033[K" echo -e "\033[K" @@ -331,7 +331,7 @@ LISTCERTS(){ echo -e "\033[7A" [ "${con}" != "" ] && echo -en "\n" - echo -en "\033[K\n\033[K\r${idsCL[LightCyan]}Enter the item number to edit: ${idsCL[Default]}" + echo -en "\033[K\n\033[K\r${idsCL[Green]}Enter the item number to edit: ${idsCL[Default]}" read -n 1 editc case "${editc}" in