Fix install for Linux Ubuntu (#7520)
* Fix linux install for Ubuntu. It failed due to sh not supporting [ and pip being seperate from python3 * Adapted install function according to feedback * Fix style
This commit is contained in:
parent
0ed492978a
commit
b386ccc786
1 changed files with 5 additions and 5 deletions
|
@ -14,8 +14,7 @@ util_dir=$(dirname "$0")
|
||||||
install_bootloadhid() {
|
install_bootloadhid() {
|
||||||
wget https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz -O - | tar -xz -C /tmp
|
wget https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz -O - | tar -xz -C /tmp
|
||||||
cd /tmp/bootloadHID.2012-12-08/commandline/
|
cd /tmp/bootloadHID.2012-12-08/commandline/
|
||||||
make
|
if make; then
|
||||||
if [ $? == 0 ]; then
|
|
||||||
sudo cp bootloadHID /usr/local/bin
|
sudo cp bootloadHID /usr/local/bin
|
||||||
fi
|
fi
|
||||||
cd -
|
cd -
|
||||||
|
@ -68,6 +67,7 @@ elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
|
||||||
libnewlib-arm-none-eabi \
|
libnewlib-arm-none-eabi \
|
||||||
libusb-dev \
|
libusb-dev \
|
||||||
python3 \
|
python3 \
|
||||||
|
python3-pip \
|
||||||
unzip \
|
unzip \
|
||||||
wget \
|
wget \
|
||||||
zip
|
zip
|
||||||
|
|
Loading…
Reference in a new issue