mirror of
https://github.com/pivpn/pivpn.git
synced 2025-05-17 05:14:10 +02:00
fix(installer): fix some code style errors
Fix some code style error about the pipelines
This commit is contained in:
parent
699f72712d
commit
e09f3a04bd
14 changed files with 316 additions and 309 deletions
|
@ -35,10 +35,10 @@ printf "\\e[1m::: Certificate Status List :::\\e[0m\\n"
|
|||
while read -r line || [[ -n "${line}" ]]; do
|
||||
STATUS="$(echo "${line}" | awk '{print $1}')"
|
||||
NAME="$(echo "${line}" | awk -FCN= '{print $2}')"
|
||||
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
|
||||
printf "Valid"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue