diff --git a/install.sh b/install.sh index 0c6fdd2..74620e4 100755 --- a/install.sh +++ b/install.sh @@ -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