From 75dbee33a760289bfe4034c5d4c32c8b49b865da Mon Sep 17 00:00:00 2001 From: Andrei Kholodnyi Date: Sat, 4 Jun 2022 21:40:14 +0200 Subject: [PATCH] add sort -V to the tag retrival --- .github/workflows/rpi4-kernel-build.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rpi4-kernel-build.yml b/.github/workflows/rpi4-kernel-build.yml index 75826f2..e87f3e7 100644 --- a/.github/workflows/rpi4-kernel-build.yml +++ b/.github/workflows/rpi4-kernel-build.yml @@ -124,7 +124,7 @@ jobs: - name: checkout necessary tag run: | cd $HOME/linux_build/${KERNEL_DIR} \ - && git tag -l *`cat $HOME/uname_r | cut -d '-' -f 2`* | tail -1 > $HOME/linux_build/tag \ + && git tag -l *`cat $HOME/uname_r | cut -d '-' -f 2`* | sort -V | tail -1 > $HOME/linux_build/tag \ && git checkout `cat $HOME/linux_build/tag` - name: Retrieve buildinfo diff --git a/Dockerfile b/Dockerfile index 3ed156b..459a28f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -91,7 +91,7 @@ RUN mkdir /home/user/linux_build \ # checkout necessary tag RUN cd /home/user/linux_build/${KERNEL_DIR} \ - && git tag -l *`cat /home/user/uname_r | cut -d '-' -f 2`* | tail -1 > /home/user/linux_build/tag \ + && git tag -l *`cat /home/user/uname_r | cut -d '-' -f 2`* | sort -V | tail -1 > /home/user/linux_build/tag \ && git checkout `cat /home/user/linux_build/tag` # install buildinfo to retieve `raspi` kernel config