Skip to content

Commit

Permalink
Update labrador_bootstrap_pi
Browse files Browse the repository at this point in the history
  • Loading branch information
EspoTek authored Sep 8, 2019
1 parent 77948b6 commit 65ca876
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions labrador_bootstrap_pi
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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."

0 comments on commit 65ca876

Please sign in to comment.