bashbrew/bashbrew.sh

13 lines
240 B
Bash
Executable File

#!/bin/bash
set -e
dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
if ! command -v gb &> /dev/null; then
( set -x && go get github.com/constabulary/gb/... )
fi
( cd "$dir/go" && gb build > /dev/null )
exec "$dir/go/bin/bashbrew" "$@"