install: make udev directory if it does not exist

This commit is contained in:
John Gebbie 2022-10-26 15:24:30 +01:00
parent 761b5bd202
commit 6a609c75d0

View file

@ -1,4 +1,4 @@
#!/bin/sh
go build && cp -v dotool dotoolc dotoold /usr/local/bin
cp -v 80-dotool.rules /etc/udev/rules.d
go build && cp -v dotool dotoolc dotoold /usr/local/bin || exit
mkdir -p /etc/udev/rules.d && cp -v 80-dotool.rules /etc/udev/rules.d || exit
udevadm trigger