mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-22 21:00:15 +00:00
Better list presentation
This commit is contained in:
parent
e6b081e0f9
commit
960a084866
3 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue