diff options
author | Karel Zak | 2012-03-30 13:43:45 +0200 |
---|---|---|
committer | Karel Zak | 2012-03-30 13:44:11 +0200 |
commit | 916a74389186b7f0d31ed67de84ff555819650c4 (patch) | |
tree | 4f20bef41e79729f52fc08ccdd4d8012b41f9220 /tools/ko-release-push | |
parent | blkid: add note about variable tags and devices order. (diff) | |
download | kernel-qcow2-util-linux-916a74389186b7f0d31ed67de84ff555819650c4.tar.gz kernel-qcow2-util-linux-916a74389186b7f0d31ed67de84ff555819650c4.tar.xz kernel-qcow2-util-linux-916a74389186b7f0d31ed67de84ff555819650c4.zip |
tools: improve ko-release-* scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tools/ko-release-push')
-rwxr-xr-x | tools/ko-release-push | 2 |
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}" |