Fix revoke, seems i missed some merges from my recent rework

This commit is contained in:
Kaladin Light 2016-05-07 13:20:09 -04:00
parent 0277054de1
commit 67e537b7fa

View file

@ -25,6 +25,8 @@ while read -r line || [[ -n "$line" ]]; do
if [ "$i" != 0 ]; then if [ "$i" != 0 ]; then
printf " $var\n" printf " $var\n"
fi fi
let i=i+1
y=$i
fi fi
done <$INDEX done <$INDEX
printf "\n" printf "\n"
@ -37,7 +39,7 @@ if [[ -z "$NAME" ]]; then
exit 1 exit 1
fi fi
for((x=1;x<=$y;++x)) do for((x=1;x<=$y;++x)); do
if [[ ${certs[$x]} = ${NAME} ]]; then if [[ ${certs[$x]} = ${NAME} ]]; then
Valid=1 Valid=1
fi fi