summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-12-09 19:09:32 +0100
committerDave Reisner <dreisner@archlinux.org>2011-12-17 05:39:32 +0100
commit53e88f96c6db71bf70942842c77e5202283b9d81 (patch)
treea9fb6a41d380cc9abc6e007fb5ab92fcad7e107a
parent05325a8e46255211706121eaedbf3f09ac6c957a (diff)
downloadmkinitcpio-53e88f96c6db71bf70942842c77e5202283b9d81.tar.gz
mkinitcpio-53e88f96c6db71bf70942842c77e5202283b9d81.tar.xz
ensure MODULEDIR is declared with a trailing slash
This forces bash tests as well as utilities like find to dereference MODULEDIR in the odd case that it's a symlink. Addresses FS#27494 Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 4411ff3..475b197 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -269,7 +269,7 @@ if [[ ! -f "$CONFIG" ]]; then
fi
. "$CONFIG"
-MODULEDIR=$BASEDIR/lib/modules/$KERNELVERSION
+MODULEDIR=$BASEDIR/lib/modules/$KERNELVERSION/
if [[ ! -d $MODULEDIR ]]; then
die "'$MODULEDIR' is not a valid kernel module directory"
fi