mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-24 05:40: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=$(echo $line | awk '{print $5}' | cut -d'/' -f7)
|
||||||
var=${var#CN=}
|
var=${var#CN=}
|
||||||
printf " $var\n"
|
printf " $var\n"
|
||||||
fi
|
elif [[ $status = "R" ]]; then
|
||||||
if [[ $status = "R" ]]; then
|
|
||||||
printf " Revoked :: "
|
printf " Revoked :: "
|
||||||
var=$(echo $line | awk '{print $6}' | cut -d'/' -f7)
|
var=$(echo $line | awk '{print $6}' | cut -d'/' -f7)
|
||||||
var=${var#CN=}
|
var=${var#CN=}
|
||||||
printf " $var\n"
|
printf " $var\n"
|
||||||
|
else
|
||||||
|
printf " Unknown :: \n"
|
||||||
fi
|
fi
|
||||||
done <$INDEX
|
done <$INDEX
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
|
Loading…
Reference in a new issue