Several typos in mptool{,-classic} scripts
- This
printStatus
call is lack of second argument:printStatus "MAC is programmed as ${result}"
→printStatus "MAC is programmed as ${result}" 0
- Typo indes → index:
echo "Write ${value} to OTP${indes}. Continue ? (yes)"
→echo "Write ${value} to OTP${index}. Continue ? (yes)"
- Typo
$som_number_final
→$som_number_full
- Typo
$board_number_p2
→$board_number_full
???
I highly recommend to use shellcheck
for static analysis of shell scripts. It's easier to preventively find typos/errors like these than bump into them in runtime.
Edited by Sergey Nazaryev