bashbrew/bashbrew.sh

13 lines
267 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
go build -o bin/bashbrew -mod vendor ./cmd/bashbrew > /dev/null
exec "$dir/bin/bashbrew" "$@"