Skip to content

Commit b97ec83

Browse files
committed
fix: prevent stdin inheritance
1 parent 207d721 commit b97ec83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dkg_injection/inject_dkg_result_dappnode.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fi
133133
log "Checking shuttermint sync block number >= ${MIN_TENDERMINT_CURRENT_BLOCK}"
134134
if ! docker exec -i "$LIVE_DB_CONTAINER" sh -lc \
135135
"psql -t -A -U postgres -d ${KEYPER_DB} -c \"SELECT current_block FROM tendermint_sync_meta ORDER BY current_block DESC LIMIT 1\"" \
136-
>"$CMD_LOG" 2>&1; then
136+
</dev/null >"$CMD_LOG" 2>&1; then
137137
echo "ERROR: failed to read shuttermint sync block number" >&2
138138
exit 1
139139
fi
@@ -239,7 +239,7 @@ fi
239239
log "Checking if backup tables already exist"
240240
if ! docker exec -i "$LIVE_DB_CONTAINER" psql -t -A -U postgres -d "${KEYPER_DB}" \
241241
-c "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name IN ('dkg_result_backup', 'keyper_set_backup', 'tendermint_batch_config_backup')" \
242-
>"$CMD_LOG" 2>&1; then
242+
</dev/null >"$CMD_LOG" 2>&1; then
243243
echo "ERROR: failed to check backup tables" >&2
244244
exit 1
245245
fi

0 commit comments

Comments
 (0)