Skip to content

Commit

Permalink
fixup! ci: fix bitcoin-only strings check of fw images
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Oct 6, 2021
1 parent 56ccab1 commit c465f21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/check-bitcoin-only
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit c465f21

Please sign in to comment.