Skip to content

Commit 3832554

Browse files
author
Thomas Kerin
committed
strip off v
1 parent 33d8c69 commit 3832554

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

test/device/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function getTestBridgeVersion(): string
2323
if (!($ver = getenv('TREZOR_BRIDGE_VERSION'))) {
2424
throw new \RuntimeException("Missing TREZOR_BRIDGE_VERSION");
2525
}
26-
return $ver;
26+
return substr($ver, 1);
2727
}
2828

2929
public function getRootPath(): string

tool/build_bridge.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/bash
22
set -x
33
cd $(git rev-parse --show-toplevel)/tool
4-
if [ ! -d ./bridge ]; then
5-
mkdir bridge
6-
fi
74
if [ ! -d $GOPATH/src/github.com/trezor/trezord-go ]; then
85
mkdir -p $GOPATH/src/github.com/trezor/trezord-go
96
cd $GOPATH/src/github.com/trezor/trezord-go
@@ -15,5 +12,6 @@ if [ ! -d $GOPATH/src/github.com/trezor/trezord-go ]; then
1512
git remote add origin https://github.com/trezor/trezord-go
1613
git fetch --all --tags --prune
1714
git checkout $TREZOR_BRIDGE_VERSION
18-
go install .
15+
go build
16+
cp trezord-go $GOPATH/bin/trezord-go
1917
fi

0 commit comments

Comments
 (0)