From dd9ecacb0824c0c9699170caf32c7a9ad88a054a Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Tue, 26 Mar 2024 09:00:00 -0500 Subject: fixup! Fix kernel update --- src/install-kernel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/install-kernel b/src/install-kernel index f3d4ef3..969f52e 100644 --- a/src/install-kernel +++ b/src/install-kernel @@ -6,7 +6,7 @@ # The /boot/vmlinuz softlink points to the last installed kernel. KERNEL_VERSION="$(realpath /boot/vmlinuz | sed 's/.*\/.*-\(.*\)/\1/')" if [ "$1" ]; then - KERNEL_VERSION="$(echo "$1" | sed 's/.*\/.*-\(.*\)/\1/')" + KERNEL_VERSION="$(realpath "$1" | sed 's/.*\/.*-\(.*\)/\1/')" fi if [ -z "$KERNEL_VERSION" ]; then -- cgit v1.2.3