Fixed wrongly disabled shellcheck SC2231:
$EASYRSA_PKI is a path that could contain spaces where word splitting must be prevented.
This commit is contained in:
parent
d211efe5d5
commit
c064d3bc66
@ -1125,8 +1125,7 @@ input in file: $req_in"
|
|||||||
[ -e "$key_in" ] && mv "$key_in" "$key_by_serial_revoked"
|
[ -e "$key_in" ] && mv "$key_in" "$key_by_serial_revoked"
|
||||||
|
|
||||||
# move the rest of the files (p12, p7, ...)
|
# move the rest of the files (p12, p7, ...)
|
||||||
# shellcheck disable=SC2231
|
for file in "$EASYRSA_PKI/private/$1"\.???
|
||||||
for file in $EASYRSA_PKI/private/$1\.???
|
|
||||||
do
|
do
|
||||||
# get file extension
|
# get file extension
|
||||||
file_ext="${file##*.}"
|
file_ext="${file##*.}"
|
||||||
@ -1291,8 +1290,7 @@ input in file: $req_in"
|
|||||||
[ -e "$key_in" ] && mv "$key_in" "$key_by_serial_renewed"
|
[ -e "$key_in" ] && mv "$key_in" "$key_by_serial_renewed"
|
||||||
|
|
||||||
# move the rest of the files (p12, p7, ...)
|
# move the rest of the files (p12, p7, ...)
|
||||||
# shellcheck disable=SC2231
|
for file in "$EASYRSA_PKI/private/$1"\.???
|
||||||
for file in $EASYRSA_PKI/private/$1\.???
|
|
||||||
do
|
do
|
||||||
# get file extension
|
# get file extension
|
||||||
file_ext="${file##*.}"
|
file_ext="${file##*.}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user