module-setup.sh: suppress false alarm

Even if the directory "/etc/kdump/pre.d/" is empty, the following false
alarm can be observed during building kdump.initrd:
  "/etc/kdump/pre.d/* is not executable"

Suppress it.

Signed-off-by: Pingfan Liu <piliu@redhat.com>
Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
Pingfan Liu 2020-07-16 16:50:14 +08:00 committed by Kairui Song
parent 8bef2d943b
commit bdbddbff73

View File

@ -419,7 +419,7 @@ kdump_install_pre_post_conf() {
for file in /etc/kdump/pre.d/*; do for file in /etc/kdump/pre.d/*; do
if [ -x "$file" ]; then if [ -x "$file" ]; then
dracut_install $file dracut_install $file
else elif [ $file != "/etc/kdump/pre.d/*" ]; then
echo "$file is not executable" echo "$file is not executable"
fi fi
done done
@ -429,7 +429,7 @@ kdump_install_pre_post_conf() {
for file in /etc/kdump/post.d/*; do for file in /etc/kdump/post.d/*; do
if [ -x "$file" ]; then if [ -x "$file" ]; then
dracut_install $file dracut_install $file
else elif [ $file != "/etc/kdump/post.d/*" ]; then
echo "$file is not executable" echo "$file is not executable"
fi fi
done done