Skip to content

Commit

Permalink
Use same method for finding setup dir in get-env-root.sh as get-env.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Sep 23, 2015
1 parent df8c617 commit a7a0675
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/get-env-root.sh
@@ -1,4 +1,11 @@
#!/bin/bash

SETUP_SRC=$(realpath ${BASH_SOURCE[0]})
SETUP_DIR=$(dirname $SETUP_SRC)

set -x
set -e

apt-get install -y realpath
apt-get install -y wget
apt-get install -y build-essential
Expand Down Expand Up @@ -27,7 +34,7 @@ sudo apt-get install -y libreadline-dev libusb-1.0-0-dev python-yaml sdcc fxload

# Load custom udev rules
(
cp -uf ${BASH_SOURCE%/*}/52-hdmi2usb.rules /etc/udev/rules.d/
cp -uf $SETUP_DIR/52-hdmi2usb.rules /etc/udev/rules.d/
sudo adduser $USER dialout
)

Expand Down

0 comments on commit a7a0675

Please sign in to comment.