fix(build.sh): Fix path to built kn when printing out the version (#77)

The final step when printing out the version of the generated kn
binary uses now the proper path, so that this script can be called
from any directory (like when the cwd is hacks/).
This commit is contained in:
Roland Huß 2019-04-19 21:47:27 +02:00 committed by Knative Prow Robot
parent 1cbd7138b6
commit 8caca4589f
1 changed files with 1 additions and 1 deletions

View File

@ -28,4 +28,4 @@ go fmt ${base}/cmd/... ${base}/pkg/...
echo "🚧 Building" echo "🚧 Building"
go build -mod=vendor -ldflags "$(ld_flags ${base}/hack)" -o ${base}/kn ${base}/cmd/... go build -mod=vendor -ldflags "$(ld_flags ${base}/hack)" -o ${base}/kn ${base}/cmd/...
echo "🌞 Success" echo "🌞 Success"
./kn version ${base}/kn version