mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-08 15:50:09 +01:00
Apply suggestions from code review
Co-authored-by: randomshell <randshell@protonmail.com>
This commit is contained in:
parent
fba92491a2
commit
63e915b2b4
@ -1301,7 +1301,7 @@ printf '=%.0s' {1..50}
|
|||||||
printf '\n'
|
printf '\n'
|
||||||
while read -r line || [ -n "$line" ]; do
|
while read -r line || [ -n "$line" ]; do
|
||||||
STATUS=$(echo "$line" | awk '{print $1}')
|
STATUS=$(echo "$line" | awk '{print $1}')
|
||||||
NAME=$(echo "$line" | awk '{print $5}' | awk -FCN= '{print $2}')
|
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($2) == 15) print $2; else print "20"$2}' | cut -b 1-8 | date +"%b %d %Y" -f -)
|
||||||
|
|
||||||
if [ "${STATUS}" == "V" ]; then
|
if [ "${STATUS}" == "V" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user