aboutsummaryrefslogtreecommitdiffsponsor
path: root/src/install-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/install-kernel')
-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