Test for failure

This commit is contained in:
Bob Mottram 2015-01-31 09:48:50 +00:00
parent d4ffd0d9b5
commit 49ee34974b
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,10 @@ if [ -f /usr/bin/sudo ]; then
SUDO='sudo'
fi
$SUDO ./setup_sdcard.sh --mmc $MICROSD_DRIVE --dtb beaglebone
if [ ! "$?" = "0" ]; then
echo 'System did not install to the microSD'
exit 4378
fi
echo ''
echo ''