mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Fix revoke, seems i missed some merges from my recent rework
This commit is contained in:
parent
0277054de1
commit
67e537b7fa
1 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,8 @@ while read -r line || [[ -n "$line" ]]; do
|
|||
if [ "$i" != 0 ]; then
|
||||
printf " $var\n"
|
||||
fi
|
||||
let i=i+1
|
||||
y=$i
|
||||
fi
|
||||
done <$INDEX
|
||||
printf "\n"
|
||||
|
@ -37,7 +39,7 @@ if [[ -z "$NAME" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
for((x=1;x<=$y;++x)) do
|
||||
for((x=1;x<=$y;++x)); do
|
||||
if [[ ${certs[$x]} = ${NAME} ]]; then
|
||||
Valid=1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue