Skip to content

Commit

Permalink
Make upgrade scripts runnable from another directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dolmen committed Feb 20, 2022
1 parent ce528d8 commit 3bcbbb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/upgrade-hidapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ fi
archive=hidapi-${version}.zip
dir=hidapi-hidapi-${version}

cd "$(dirname "$0")"

curl -L -o "$archive" "https://github.com/libusb/hidapi/archive/refs/tags/$archive"

rm -Rf $dir
Expand Down
2 changes: 2 additions & 0 deletions internal/upgrade-libusb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ fi

archive=libusb-${version}.tar.bz2

cd "$(dirname "$0")"

curl -L -o "$archive" "https://github.com/libusb/libusb/releases/download/v$version/$archive"

rm -Rf libusb-${version}
Expand Down

0 comments on commit 3bcbbb7

Please sign in to comment.