Skip to content

Commit 94933a6

Browse files
committed
Merge pull request #73 from timvideos/mithro.get-env-root-fix
Use same method for finding setup dir in get-env-root.sh as get-env.sh
2 parents df8c617 + a7a0675 commit 94933a6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/get-env-root.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
#!/bin/bash
2+
3+
SETUP_SRC=$(realpath ${BASH_SOURCE[0]})
4+
SETUP_DIR=$(dirname $SETUP_SRC)
5+
6+
set -x
7+
set -e
8+
29
apt-get install -y realpath
310
apt-get install -y wget
411
apt-get install -y build-essential
@@ -27,7 +34,7 @@ sudo apt-get install -y libreadline-dev libusb-1.0-0-dev python-yaml sdcc fxload
2734

2835
# Load custom udev rules
2936
(
30-
cp -uf ${BASH_SOURCE%/*}/52-hdmi2usb.rules /etc/udev/rules.d/
37+
cp -uf $SETUP_DIR/52-hdmi2usb.rules /etc/udev/rules.d/
3138
sudo adduser $USER dialout
3239
)
3340

0 commit comments

Comments
 (0)