Skip to content

Commit 169d5a8

Browse files
committed
Fix the ability to use "bashbrew.sh" from any working directory
1 parent dfff1c3 commit 169d5a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bashbrew.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ dir="$(readlink -f "$BASH_SOURCE")"
77
dir="$(dirname "$dir")"
88

99
export GO111MODULE=on
10-
go build -o bin/bashbrew -mod vendor ./cmd/bashbrew > /dev/null
10+
(
11+
cd "$dir"
12+
go build -o bin/bashbrew -mod vendor ./cmd/bashbrew > /dev/null
13+
)
1114

1215
exec "$dir/bin/bashbrew" "$@"

0 commit comments

Comments
 (0)