divider length

This commit is contained in:
2019-02-11 12:27:34 -06:00
parent 6667beccf3
commit de87b5491a
2 changed files with 8 additions and 4 deletions

View File

@@ -107,10 +107,14 @@ DISP_HEADER(){
} }
DIVIDER(){ DIVIDER(){
if [ -z ${2+x} ]; then clr='yellow' if [ -z ${2+x} ]; then local clr='yellow'
else clr=$2 else local clr=$2
fi fi
echo -e "${idsCL[${clr~}]}-----------------------------------------------------------------------${idsCL[Default]}" if [ -z ${3+x} ]; then local length=70
else local length=$3
fi
local c=0; local dashes=''; until [ $c = ${length} ]; do local dashes="${dashes} "; local c=`expr $c + 1`; done
echo -e "${idsCL[${clr~}]}${dashes}${idsCL[Default]}"
if [ "$1" = true ]; then if [ "$1" = true ]; then
echo "" echo ""
fi fi

View File

@@ -625,7 +625,7 @@ LISTCERTS(){
echo -e "${idsCL[Cyan]}${spc} ${idsCL[Cyan]}${SUBJECT_NAMES[3]}, ${SUBJECT_NAMES[4]}, ${SUBJECT_NAMES[5]}${idsCL[Default]}" echo -e "${idsCL[Cyan]}${spc} ${idsCL[Cyan]}${SUBJECT_NAMES[3]}, ${SUBJECT_NAMES[4]}, ${SUBJECT_NAMES[5]}${idsCL[Default]}"
fi fi
DIVIDER false lightGray DIVIDER false darkGray
done done
echo echo
if [ -z $action ] || [ "${action}" = "gui" ]; then if [ -z $action ] || [ "${action}" = "gui" ]; then