mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 19:30:16 +00:00
Cover unknown in pivpn list.
I believe there is an expired status but can't get it to show up in the index.txt
This commit is contained in:
parent
ffb9e71964
commit
f3c1072975
1 changed files with 3 additions and 2 deletions
|
@ -21,12 +21,13 @@ while read -r line || [[ -n "$line" ]]; do
|
|||
var=$(echo $line | awk '{print $5}' | cut -d'/' -f7)
|
||||
var=${var#CN=}
|
||||
printf " $var\n"
|
||||
fi
|
||||
if [[ $status = "R" ]]; then
|
||||
elif [[ $status = "R" ]]; then
|
||||
printf " Revoked :: "
|
||||
var=$(echo $line | awk '{print $6}' | cut -d'/' -f7)
|
||||
var=${var#CN=}
|
||||
printf " $var\n"
|
||||
else
|
||||
printf " Unknown :: \n"
|
||||
fi
|
||||
done <$INDEX
|
||||
printf "\n"
|
||||
|
|
Loading…
Reference in a new issue