diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-12-09 19:09:32 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-12-17 05:39:32 +0100 |
commit | 53e88f96c6db71bf70942842c77e5202283b9d81 (patch) | |
tree | a9fb6a41d380cc9abc6e007fb5ab92fcad7e107a | |
parent | 05325a8e46255211706121eaedbf3f09ac6c957a (diff) | |
download | mkinitcpio-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-x | mkinitcpio | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |