Skip to content

Commit 9345e75

Browse files
authored
Fix cut command in build-flags script (#342)
1 parent 9827c45 commit 9345e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/build-flags.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function build_flags() {
2525
version="v$(date +%Y%m%d)-local-${commit}"
2626
fi
2727
# Knative component versions
28-
local branch="`git branch --show-current | cut -d '-' f2`"
28+
local branch="`git branch --show-current | cut -d '-' -s -f2`"
2929
local serving="`git ls-remote --tags --ref https://github.com/knative/serving.git | grep -F "${branch}" | cut -d '-' -f2 | cut -d 'v' -f2 | sort -Vr | head -n 1`"
3030
local kourier="`git ls-remote --tags --ref https://github.com/knative-sandbox/net-kourier.git | grep -F "${branch}" | cut -d '-' -f2 | cut -d 'v' -f2 | sort -Vr | head -n 1`"
3131
local eventing="`git ls-remote --tags --ref https://github.com/knative/eventing.git | grep -F "${branch}" | cut -d '-' -f2 | cut -d 'v' -f2 | sort -Vr | head -n 1`"

0 commit comments

Comments
 (0)