From b2be1eb278c47012990ae9db657c906cc1b14cdc Mon Sep 17 00:00:00 2001 From: Andrew Ferguson Date: Wed, 26 Jan 2022 11:18:16 -0800 Subject: [PATCH] Update to align with SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with 0. --- deploy/plex.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/plex.sh b/deploy/plex.sh index 05f29b6e..25be5385 100755 --- a/deploy/plex.sh +++ b/deploy/plex.sh @@ -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