mirror of https://github.com/EspoTek/Labrador.git
Update labrador_bootstrap_pi
This commit is contained in:
parent
77948b673f
commit
65ca876ff1
|
@ -1,13 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Install prerequisites
|
# Install prerequisites
|
||||||
dpkg -s qt5-default
|
dpkg -s qt5-default
|
||||||
QT5_NOT_INSTALLED=$?
|
QT5_NOT_INSTALLED=$?
|
||||||
dpkg -s libusb-1.0-0-dev
|
dpkg -s libusb-1.0-0-dev
|
||||||
LIBUSB_NOT_INSTALLED=$?
|
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
|
if [ $QT5_NOT_INSTALLED != 0 ] || [ $LIBUSB_NOT_INSTALLED != 0 ]; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install qt5-default
|
sudo apt-get install qt5-default
|
||||||
|
|
Loading…
Reference in New Issue