From 7c2590eff73668f5988b01d539b75571ff212c59 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Fri, 12 Apr 2019 19:46:20 -0400 Subject: [PATCH] fix install script --- hidusb-relay-cmd-setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hidusb-relay-cmd-setup b/hidusb-relay-cmd-setup index 275832d..86e8415 100755 --- a/hidusb-relay-cmd-setup +++ b/hidusb-relay-cmd-setup @@ -2,6 +2,7 @@ set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR +script_dir="$(readlink -f -- "$BASH_SOURCE")" rm -rf usb-relay-hid git clone https://vcs.fsf.org/git/usb-relay-hid.git @@ -19,7 +20,7 @@ cd commandline/makemake/ apt update apt-get install libusb-dev libusb-1.0-0-dev make -cp relay-cmd hidusb-relay-cmd /usr/local/bin +cp $script_dir/libremanage hidusb-relay-cmd /usr/local/bin cat <<'EOF' the output should be similar to this: -- 2.25.1