mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:17:41 +00:00
Update to align with SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with 0.
This commit is contained in:
parent
db49858f21
commit
b2be1eb278
@ -62,8 +62,8 @@ plex_deploy() {
|
||||
_reload_cmd=""
|
||||
|
||||
_debug "Generate import pkcs12"
|
||||
_toPkcs "$PLEX_PKCS12_file" "$_ckey" "$_ccert" "$_cca" "$PLEX_PKCS12_password"
|
||||
if [ "$?" != "0" ]; then
|
||||
|
||||
if ! _toPkcs "$PLEX_PKCS12_file" "$_ckey" "$_ccert" "$_cca" "$PLEX_PKCS12_password"; then
|
||||
_err "Error generating pkcs12. Please re-run with --debug and report a bug."
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user