File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -219,20 +219,21 @@ _is_mevboost_available() {
219219 return 1
220220 fi
221221
222- if ! command -v curl > /dev/null; then
222+ if ! command -v curl > /dev/null 2>&1 ; then
223223 echo " [WARN - entrypoint] curl is not installed. Skipping MEV Boost availability check" >&2
224224 return 0
225225 fi
226226
227- if curl --retry 5 --retry-delay 5 --retry-all-errors " ${mevboost_url} " ; then
227+ if curl --retry 5 --retry-delay 5 --retry-all-errors " ${mevboost_url} " > /dev/null 2>&1 ; then
228228 echo " [INFO - entrypoint] MEV Boost is available" >&2
229229 return 0
230230 else
231231 echo " [ERROR - entrypoint] MEV Boost is enabled but the package at ${mevboost_url} is not reachable. Disabling MEV Boost..." >&2
232232 curl -X POST -G ' http://my.dappnode/notification-send' \
233233 --data-urlencode ' type=danger' \
234234 --data-urlencode title=" ${mevboost_url} can not be reached" \
235- --data-urlencode ' body=Make sure the MEV Boost DNP for this network is available and running'
235+ --data-urlencode ' body=Make sure the MEV Boost DNP for this network is available and running' \
236+ > /dev/null 2>&1
236237 return 1
237238 fi
238239}
You can’t perform that action at this time.
0 commit comments