Better list presentation

This commit is contained in:
Rob Peters 2020-07-14 13:27:40 +02:00
parent e6b081e0f9
commit 960a084866
3 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ if [[ -z "${CERTS_TO_REVOKE}" ]]; then
i=1 i=1
len=${#CERTS[@]} len=${#CERTS[@]}
while [ $i -le ${len} ]; do while [ $i -le ${len} ]; do
printf "[%0${#len}s] %s\r\n" ${i} ${CERTS[(($i))]} printf "%0${#len}s) %s\r\n" ${i} ${CERTS[(($i))]}
((i++)) ((i++))
done done
printf "\n" printf "\n"

View file

@ -40,7 +40,7 @@ if [ "${#CLIENTS_TO_SHOW[@]}" -eq 0 ]; then
len=${#LIST[@]} len=${#LIST[@]}
COUNTER=1 COUNTER=1
while [ $COUNTER -le ${len} ]; do while [ $COUNTER -le ${len} ]; do
printf "[%0${#len}s] %s\r\n" ${COUNTER} ${LIST[(($COUNTER-1))]} printf "%0${#len}s) %s\r\n" ${COUNTER} ${LIST[(($COUNTER-1))]}
((COUNTER++)) ((COUNTER++))
done done

View file

@ -48,7 +48,7 @@ if [ "${#CLIENTS_TO_REMOVE[@]}" -eq 0 ]; then
len=${#LIST[@]} len=${#LIST[@]}
COUNTER=1 COUNTER=1
while [ $COUNTER -le ${len} ]; do while [ $COUNTER -le ${len} ]; do
printf "[%0${#len}s] %s\r\n" ${COUNTER} ${LIST[(($COUNTER-1))]} printf "%0${#len}s) %s\r\n" ${COUNTER} ${LIST[(($COUNTER-1))]}
((COUNTER++)) ((COUNTER++))
done done