summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio6
1 files changed, 2 insertions, 4 deletions
diff --git a/mkinitcpio b/mkinitcpio
index e331da2..91dac25 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -175,10 +175,8 @@ if [ -n "${PRESET}" ]; then
fi
fi
-# append a trailing / if needed
-if [ "${BASEDIR}" = "${BASEDIR%/}" ]; then
- BASEDIR="${BASEDIR}/"
-fi
+# remove trailing / from BASEDIR
+BASEDIR="${BASEDIR%/}"
MODULEDIR="${BASEDIR}/lib/modules/${KERNELVERSION}"