Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster committed Dec 1, 2023
1 parent e5edcc3 commit 4d65e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ cd /chia-blockchain || exit 1
chia ${chia_args} init --fix-ssl-permissions

if [[ -n ${ca} ]]; then
openssl verify -CAfile ${ca}/private_ca.crt ${CHIA_ROOT}/config/ssl/harvester/private_harvester.crt &>/dev/null
if [ ${?} -ne 0 ]; then
if ! openssl verify -CAfile "${ca}/private_ca.crt" "${CHIA_ROOT}/config/ssl/harvester/private_harvester.crt" &>/dev/null; then
echo "initializing from new CA"
# shellcheck disable=SC2086
chia ${chia_args} init -c "${ca}"
else
echo "using existing CA"
Expand Down

0 comments on commit 4d65e4e

Please sign in to comment.