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:
Kaladin Light 2016-04-24 11:29:29 -04:00
parent ffb9e71964
commit f3c1072975

View file

@ -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"