Skip to content

Commit 618c24a

Browse files
committed
copy 52-hdmi2usb.rules from same dir script is in.
#bash is very helpful and this is a good read. both entertaining and useful. !faq location; greybot: http://mywiki.wooledge.org/BashFAQ/028 -- How do I determine the location of my script? I want to read some config files from the same place.
1 parent f032029 commit 618c24a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/get-env-root.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ sudo apt-get install -y libreadline-dev libusb-1.0-0-dev python-yaml sdcc fxload
2727

2828
# Load custom udev rules
2929
(
30-
cd $SETUP_DIR
31-
sudo cp -uf 52-hdmi2usb.rules /etc/udev/rules.d/
30+
cp -uf ${BASH_SOURCE%/*}/52-hdmi2usb.rules /etc/udev/rules.d/
3231
sudo adduser $USER dialout
3332
)
3433

0 commit comments

Comments
 (0)