From c465f210e6182a66660d7f8185664f5263b4c355 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Wed, 6 Oct 2021 17:33:26 +0200 Subject: [PATCH] fixup! ci: fix bitcoin-only strings check of fw images --- tools/check-bitcoin-only | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/check-bitcoin-only b/tools/check-bitcoin-only index 97d13fa5c97..812dfceba4b 100755 --- a/tools/check-bitcoin-only +++ b/tools/check-bitcoin-only @@ -1,6 +1,8 @@ #!/bin/sh RETURN=0 +EXCEPTIONS="decred|omni|ripple|dash|TEXT_MARGIN_LEFT|APP_CARDANO_PASSPHRASE|APP_MONERO_LIVE_REFRESH|ed25519 cardano|dash_width|dashlane|flo|mnemonic|meter|refuse|fused|enemy|cinema|syntaxerror|mix|palm" + # dump all coins except the first 3 (Bitcoin, Testnet, Regtest) ALTCOINS=$(./common/tools/cointool.py dump -l -p -t | grep '"name"' | cut -d '"' -f 4 | tail -n +4) # split on newlines only @@ -9,7 +11,7 @@ IFS=" " for altcoin in $ALTCOINS; do # echo :"$altcoin": - if strings "$1" | grep "$altcoin" | grep -v TEXT_MARGIN_LEFT | grep -v _MIN_MNEMONIC_LENGTH_WORD ; then + if strings "$1" | grep -i "$altcoin" | grep -Evi "$EXCEPTIONS" ; then RETURN=1 fi done