From b0b2f36c568c2452d2380c83170a0a5d18674cdb Mon Sep 17 00:00:00 2001 From: Mirko <79272490+mjechow@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:29:14 +0200 Subject: [PATCH 1/3] feat(lint): add shellcheck during MR pipeline --- .github/workflows/shellcheck.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 64c04a8..05d4858 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -2,6 +2,9 @@ on: push: branches: - main + pull_request: + branches: + - main name: "Trigger: Push action" permissions: {} From 10b98c244f627646f6540f8c414b262f23e54751 Mon Sep 17 00:00:00 2001 From: Mirko <79272490+mjechow@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:39:13 +0200 Subject: [PATCH 2/3] test --- buildKernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildKernel.sh b/buildKernel.sh index a47da22..3ae053d 100755 --- a/buildKernel.sh +++ b/buildKernel.sh @@ -15,7 +15,7 @@ kernelVersion=${kernelVersionDir#v} # remove character "v" cd .. kernelUrl=https://kernel.ubuntu.com/~kernel-ppa/mainline/${kernelVersionDir} -kernelVersionLong=$(echo "$kernelVersion" | awk 'BEGIN {FS="."}{printf "%02d%02d%02d", $1, $2, $3;}') +kernelVersionLong=$(echo $kernelVersion | awk 'BEGIN {FS="."}{printf "%02d%02d%02d", $1, $2, $3;}') kernelFileName=$(curl -sL "$kernelUrl" | grep -iEo "linux-modules-${kernelVersion}-${kernelVersionLong}-generic_${kernelVersion}-${kernelVersionLong}.[0-9]{12}_amd64.deb" | head -1) kernelDeb=${kernelUrl}/amd64/${kernelFileName} if [[ ! -f "${kernelFileName}" ]]; then From 3d728db675e3338fcbe457ec3f2db2e8d36147c5 Mon Sep 17 00:00:00 2001 From: Mirko <79272490+mjechow@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:40:51 +0200 Subject: [PATCH 3/3] Revert "test" This reverts commit 10b98c244f627646f6540f8c414b262f23e54751. --- buildKernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildKernel.sh b/buildKernel.sh index 3ae053d..a47da22 100755 --- a/buildKernel.sh +++ b/buildKernel.sh @@ -15,7 +15,7 @@ kernelVersion=${kernelVersionDir#v} # remove character "v" cd .. kernelUrl=https://kernel.ubuntu.com/~kernel-ppa/mainline/${kernelVersionDir} -kernelVersionLong=$(echo $kernelVersion | awk 'BEGIN {FS="."}{printf "%02d%02d%02d", $1, $2, $3;}') +kernelVersionLong=$(echo "$kernelVersion" | awk 'BEGIN {FS="."}{printf "%02d%02d%02d", $1, $2, $3;}') kernelFileName=$(curl -sL "$kernelUrl" | grep -iEo "linux-modules-${kernelVersion}-${kernelVersionLong}-generic_${kernelVersion}-${kernelVersionLong}.[0-9]{12}_amd64.deb" | head -1) kernelDeb=${kernelUrl}/amd64/${kernelFileName} if [[ ! -f "${kernelFileName}" ]]; then