aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-03-26 09:00:00 -0500
committerSlack Coder <slackcoder@server.ky>2024-03-26 09:00:00 -0500
commitdd9ecacb0824c0c9699170caf32c7a9ad88a054a (patch)
tree0a763688dfd0b182d858881e714435f8e8c2b3e0 /src
parent7f8b00fbffcb89c6168962df797413956d2e62bc (diff)
downloadslack-autoupdate-dd9ecacb0824c0c9699170caf32c7a9ad88a054a.tar.xz
fixup! Fix kernel update
Diffstat (limited to 'src')
-rw-r--r--src/install-kernel2
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