summaryrefslogtreecommitdiff
path: root/util/linux_install.sh
diff options
context:
space:
mode:
authoriKirin <tsuki-shimizu@live.at>2019-12-01 22:56:38 +0100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-01-09 08:57:11 +0900
commitc465c4ac840303e78948dd882fb8e16aacdea946 (patch)
tree4c74884193f37fb6090d070d52351c3b0b01676f /util/linux_install.sh
parent50fcd787724a3c751f6dbb2c8085957efd044842 (diff)
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
Diffstat (limited to 'util/linux_install.sh')
-rwxr-xr-xutil/linux_install.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/linux_install.sh b/util/linux_install.sh
index 472db4f28e..b76ec4daed 100755
--- a/util/linux_install.sh
+++ b/util/linux_install.sh
@@ -12,13 +12,12 @@ util_dir=$(dirname "$0")
# For those distros that do not package 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/
- make
- if [ $? == 0 ]; then
+ if make; then
sudo cp bootloadHID /usr/local/bin
- fi
- cd -
+ fi
+ cd -
}
if grep ID /etc/os-release | grep -qE "fedora"; then
@@ -68,6 +67,7 @@ elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
libnewlib-arm-none-eabi \
libusb-dev \
python3 \
+ python3-pip \
unzip \
wget \
zip