16 lines
271 B
Bash
Executable File
16 lines
271 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
# a small shell script to help compile bashbrew
|
|
|
|
dir="$(readlink -f "$BASH_SOURCE")"
|
|
dir="$(dirname "$dir")"
|
|
|
|
export GO111MODULE=on
|
|
(
|
|
cd "$dir"
|
|
go build -o bin/bashbrew ./cmd/bashbrew > /dev/null
|
|
)
|
|
|
|
exec "$dir/bin/bashbrew" "$@"
|