Update openvpn-install.sh

Co-authored-by: randomshell <randshell@protonmail.com>
This commit is contained in:
psgoundar 2020-07-08 20:18:25 -07:00 committed by GitHub
parent 63e915b2b4
commit b90c15512a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1302,7 +1302,7 @@ printf '\n'
while read -r line || [ -n "$line" ]; do
STATUS=$(echo "$line" | awk '{print $1}')
NAME=$(echo "$line" | cut -d '=' -f2)
EXPD=$(echo "$line" | awk '{if (length($2) == 15) print $2; else print "20"$2}' | cut -b 1-8 | date +"%b %d %Y" -f -)
EXPD=$(echo "$line" | awk '{if (length($3) == 13) print "20"$3; else print "20"$2}' | cut -b 1-8 | date +"%b %d %Y" -f -)
if [ "${STATUS}" == "V" ]; then
printf "Valid \t %s \t %s\\n" "$NAME" "$EXPD"