From ee2ef3ab25c50505357bcbe60033635a48135f2f Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 6 May 2019 15:19:58 -0400 Subject: [PATCH] fix setup script --- hidusb-relay-cmd-setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hidusb-relay-cmd-setup b/hidusb-relay-cmd-setup index 86e8415..54fe257 100755 --- a/hidusb-relay-cmd-setup +++ b/hidusb-relay-cmd-setup @@ -2,7 +2,9 @@ set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR -script_dir="$(readlink -f -- "$BASH_SOURCE")" + +tmp="$(readlink -f -- "$BASH_SOURCE")"; script_dir=${tmp%/*} + rm -rf usb-relay-hid git clone https://vcs.fsf.org/git/usb-relay-hid.git -- 2.25.1