From e6b081e0f9ce6d6529ec568930ff71f46e4681c2 Mon Sep 17 00:00:00 2001 From: GizMoCuz Date: Wed, 8 Jul 2020 16:43:32 +0200 Subject: [PATCH] Added missing regex --- scripts/openvpn/removeOVPN.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/openvpn/removeOVPN.sh b/scripts/openvpn/removeOVPN.sh index 79a5936..d8e1061 100755 --- a/scripts/openvpn/removeOVPN.sh +++ b/scripts/openvpn/removeOVPN.sh @@ -76,6 +76,7 @@ if [[ -z "${CERTS_TO_REVOKE}" ]]; then exit 1 fi + re='^[0-9]+$' if [[ ${NAME} =~ $re ]] ; then NAME=${CERTS[$(($NAME))]} fi