Update labrador_bootstrap_pi

This commit is contained in:
Chris Esposito 2019-09-08 15:43:28 +10:00 committed by GitHub
parent 77948b673f
commit 65ca876ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1,13 +1,14 @@
#!/bin/bash
set -e
# Install prerequisites
dpkg -s qt5-default
QT5_NOT_INSTALLED=$?
dpkg -s libusb-1.0-0-dev
LIBUSB_NOT_INSTALLED=$?
# We don't want to bail if one of the first 4 lines returns error. That's what they're meant to do!
set -e
if [ $QT5_NOT_INSTALLED != 0 ] || [ $LIBUSB_NOT_INSTALLED != 0 ]; then
sudo apt-get update
sudo apt-get install qt5-default
@ -49,4 +50,4 @@ rm -rf raspberry-pi-gcc-binary
rm -rf labrador
echo "Labrador installation success!"
echo "To run the software, enter \"labrador\" into the terminal or open the app from the \"Education\" menu."
echo "To run the software, enter \"labrador\" into the terminal or open the app from the \"Education\" menu."