From 5e162607a486675b51febbcacc81b62356e0ab29 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Tue, 12 Jan 2010 00:30:45 +0100 Subject: Do not append a trailing /, remove it (fixed FS#17793) The comment said it was appending a trailing /, but it was actually removed Recent fixes adjusted the code to do what the comment says, which is wrong here. This fixes the code and the comment. --- mkinitcpio | 6 ++---- 1 file 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}" -- cgit v1.2.3-24-g4f1b