Simplify
Signed-off-by: Xavier Bachelot <xavier@bachelot.org>
This commit is contained in:
parent
8075dbbded
commit
30d1c95e68
@ -957,10 +957,7 @@ input in file: $req_in"
|
|||||||
[ -e "$req_in" ] && mv "$req_in" "$req_by_serial_revoked"
|
[ -e "$req_in" ] && mv "$req_in" "$req_by_serial_revoked"
|
||||||
|
|
||||||
# only move the key if we have it
|
# only move the key if we have it
|
||||||
if [ -e "$key_in" ]
|
[ -e "$key_in" ] && mv "$key_in" "$key_by_serial_revoked"
|
||||||
then
|
|
||||||
mv "$key_in" "$key_by_serial_revoked"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# move the rest of the files (p12, p7, ...)
|
# move the rest of the files (p12, p7, ...)
|
||||||
# shellcheck disable=SC2231
|
# shellcheck disable=SC2231
|
||||||
@ -1129,10 +1126,7 @@ input in file: $req_in"
|
|||||||
[ -e "$req_in" ] && mv "$req_in" "$req_by_serial_renewed"
|
[ -e "$req_in" ] && mv "$req_in" "$req_by_serial_renewed"
|
||||||
|
|
||||||
# only move the key if we have it
|
# only move the key if we have it
|
||||||
if [ -e "$key_in" ]
|
[ -e "$key_in" ] && mv "$key_in" "$key_by_serial_renewed"
|
||||||
then
|
|
||||||
mv "$key_in" "$key_by_serial_renewed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# move the rest of the files (p12, p7, ...)
|
# move the rest of the files (p12, p7, ...)
|
||||||
# shellcheck disable=SC2231
|
# shellcheck disable=SC2231
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user