mirror of
https://github.com/pivpn/pivpn.git
synced 2025-01-20 19:39:46 +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
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue