Ver código fonte

Test for failure

Bob Mottram 10 anos atrás
pai
commit
49ee34974b
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/freedombone-prep

+ 4
- 0
src/freedombone-prep Ver arquivo

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