1
0
Fork 0
mirror of https://github.com/pivpn/pivpn.git synced 2024-12-22 12:50:16 +00:00

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
len=${#CERTS[@]}
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++))
done
printf "\n"

View file

@ -40,7 +40,7 @@ if [ "${#CLIENTS_TO_SHOW[@]}" -eq 0 ]; then
len=${#LIST[@]}
COUNTER=1
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++))
done

View file

@ -48,7 +48,7 @@ if [ "${#CLIENTS_TO_REMOVE[@]}" -eq 0 ]; then
len=${#LIST[@]}
COUNTER=1
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++))
done