1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

fix: correctly detect all altcoin names in check-bitcoin-only

The -d multi-select picks only coins that are available on _all_ models.
Besides, it's more correct to check even for unsupported altcoins.
This commit is contained in:
matejcik 2024-03-07 13:29:32 +01:00 committed by matejcik
parent 17678ef38d
commit f34ad3daf1

View File

@ -16,7 +16,7 @@ for exception in "${EXCEPTIONS[@]}"; do
done done
# dump all coins except the first 3 (Bitcoin, Testnet, Regtest), exclude names with less than 4 characters # 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') ALTCOINS=$(./common/tools/cointool.py dump -l -p -t | grep '"name"' | cut -d '"' -f 4 | tail -n +4 | awk 'length($0)>3')
# split on newlines only # split on newlines only
OLDIFS=$IFS OLDIFS=$IFS
IFS=" IFS="