diff --git a/tools/check-bitcoin-only b/tools/check-bitcoin-only index 01f39279c..d1d695625 100755 --- a/tools/check-bitcoin-only +++ b/tools/check-bitcoin-only @@ -4,12 +4,8 @@ RETURN=0 EXCEPTIONS=() EXCEPTIONS+=( "decred" ) # "decred" figures in field names used by the bitcoin app EXCEPTIONS+=( "omni" ) # OMNI is part of the bitcoin app - # BIP39 or SLIP39 words that have "dash", "nem", or "flo" in them -EXCEPTIONS+=( "cinema" "dash" "enemy" "float" "flock" "flower" "floor" "floral" ) -EXCEPTIONS+=( "mnemonic" ) # has NEM in it -EXCEPTIONS+=( "workflow" "overflow" ) # has Flo in it -EXCEPTIONS+=( "SyntaxError" ) # has Axe in it -EXCEPTIONS+=( "DKDNEM" ) # has NEM in it, some sort of weird coincidence + # BIP39 or SLIP39 words that have "dash" in them +EXCEPTIONS+=( "dash" ) EXCEPTIONS+=( "confirm_ethereum_tx" ) # is model-specific, so is in layout/__init__.py instead of ethereum/layout.py GREP_ARGS=() @@ -17,8 +13,8 @@ for exception in "${EXCEPTIONS[@]}"; do GREP_ARGS+=(-e $exception) done -# dump all coins except the first 3 (Bitcoin, Testnet, Regtest) -ALTCOINS=$(./common/tools/cointool.py dump -l -p -t -d T1B1 -d T2T1 -d T2B1 | grep '"name"' | cut -d '"' -f 4 | tail -n +4) +# dump all coins except the first 3 (Bitcoin, Testnet, Regtest), exclude names with less than 4 characters +ALTCOINS=$(./common/tools/cointool.py dump -l -p -t -d T1B1 -d T2T1 -d T2B1 | grep '"name"' | cut -d '"' -f 4 | tail -n +4 | awk 'length($0)>3') # split on newlines only OLDIFS=$IFS IFS="