ftCommunity / ftcommunity-TXT

Fischertechnik ROBOTICS TXT firmware, community edition
http://cfw.ftcommunity.de/
GNU General Public License v3.0
46 stars 31 forks source link

Detect mounting errors in sdcard initialization #227

Open ski7777 opened 1 year ago

ski7777 commented 1 year ago
    A suggestion for this file: It is very important that errors are noticed as it is hard to find bugs due to a wrong installation. I would suggest to fail whenever _any_ of the below commands return with a non-zero state. In bash, a line like `set -e` does that. I don't know if `#!/bin/busybox sh -e` in line 1 would do that.

_Originally posted by @hypnotoad in https://github.com/ftCommunity/ftcommunity-TXT/pull/226#discussion_r1060977755_