Skip to content

Commit

Permalink
Fix install for Linux Ubuntu (qmk#7520)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Kirinkun authored and fauxpark committed Dec 1, 2019
1 parent 0ed4929 commit b386ccc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions util/linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b386ccc

Please sign in to comment.