mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 03:10:16 +00:00
Added missing regex
This commit is contained in:
parent
7aa91fc67a
commit
e6b081e0f9
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ if [[ -z "${CERTS_TO_REVOKE}" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
re='^[0-9]+$'
|
||||||
if [[ ${NAME} =~ $re ]] ; then
|
if [[ ${NAME} =~ $re ]] ; then
|
||||||
NAME=${CERTS[$(($NAME))]}
|
NAME=${CERTS[$(($NAME))]}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue