From 8caca4589f910138a675cbe206db1289f4c48c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Fri, 19 Apr 2019 21:47:27 +0200 Subject: [PATCH] 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/). --- hack/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/build.sh b/hack/build.sh index b9d40946a..b269dba2d 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -28,4 +28,4 @@ go fmt ${base}/cmd/... ${base}/pkg/... echo "🚧 Building" go build -mod=vendor -ldflags "$(ld_flags ${base}/hack)" -o ${base}/kn ${base}/cmd/... echo "🌞 Success" -./kn version +${base}/kn version