From 8f75b0807aeb442d764671cf7a6b36754da815fd Mon Sep 17 00:00:00 2001 From: Ferenc Erki Date: Mon, 1 Feb 2021 00:05:04 +0100 Subject: [PATCH 1/2] Sort Manifest lines by version --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 79247b6..f08b6a7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,7 +28,7 @@ fi ln -s "$gentoo_repo/profiles/$profile" /etc/portage/make.profile if [ "$portage_version" = "latest" ]; then - portage_version=$(grep DIST "$gentoo_repo/sys-apps/portage/Manifest" | tail -1 | cut -d ' ' -f 2) + portage_version=$(grep DIST "$gentoo_repo/sys-apps/portage/Manifest" | sort --version-sort | tail -1 | cut -d ' ' -f 2) portage_version=${portage_version%.tar.bz2} portage_version=${portage_version#portage-} # e.g. "2.3.20" fi From dd6033b1560f5d845b4b70d2afe8cd98a8f87a5c Mon Sep 17 00:00:00 2001 From: Ferenc Erki Date: Mon, 1 Feb 2021 00:19:32 +0100 Subject: [PATCH 2/2] Upgrade shell-linter action --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4a502b1..2cb67a6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -9,4 +9,4 @@ jobs: uses: actions/checkout@v1 - name: 'Run Shellcheck' - uses: azohra/shell-linter@v0.2.0 + uses: azohra/shell-linter@v0.4.0