summaryrefslogtreecommitdiffstats
path: root/tools/ko-release-push
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ko-release-push')
-rwxr-xr-xtools/ko-release-push2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ko-release-push b/tools/ko-release-push
index ebeddbb63..f08954fc1 100755
--- a/tools/ko-release-push
+++ b/tools/ko-release-push
@@ -20,7 +20,7 @@ cd "$(git rev-parse --show-toplevel)" || {
echo "error: cannot found version file (call make distcheck)"
VERSION=${2:-$(cat .version)}
-VERSION_MAJOR=$(echo $VERSION | sed 's/-rc[0-9]//')
+VERSION_MAJOR=$(echo $VERSION | sed 's/-rc[0-9]//; s/\(.*\..*\)\..*/\1/')
BASEDIR=${1:-"kernel.org"}
DISTDIR="${BASEDIR}/v${VERSION_MAJOR}"