From 5f1c83a37abcb2d1d44c9cccc6b6f3b850d10a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krizs=C3=A1n=20P=C3=A9ter?= Date: Sat, 23 Nov 2024 19:54:06 +0100 Subject: [PATCH] Use realpath to remove useless slashes from path --- libs/functions.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/functions.sh b/libs/functions.sh index ffbf2c1..077c4c0 100644 --- a/libs/functions.sh +++ b/libs/functions.sh @@ -41,8 +41,9 @@ createFstab() fi # If a mount point is given then we generate fstab based on that mount point. - DIR_ROOT="$1 " - DIR_BOOT="$1/boot " + + DIR_ROOT="$(realpath -sm "$1") " + DIR_BOOT="$(realpath -sm "$1")/boot " else # No mount point is given. We generate fstab for the current running system. DIR_ROOT="/ "