diff options
author | Slack Coder <slackcoder@server.ky> | 2024-03-26 09:00:00 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-03-26 09:00:00 -0500 |
commit | dd9ecacb0824c0c9699170caf32c7a9ad88a054a (patch) | |
tree | 0a763688dfd0b182d858881e714435f8e8c2b3e0 /src/install-kernel | |
parent | 7f8b00fbffcb89c6168962df797413956d2e62bc (diff) | |
download | slack-autoupdate-dd9ecacb0824c0c9699170caf32c7a9ad88a054a.tar.xz |
fixup! Fix kernel update
Diffstat (limited to 'src/install-kernel')
-rw-r--r-- | src/install-kernel | 2 |
1 files changed, 1 insertions, 1 deletions
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 |