]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2007-11-05 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 5 Nov 2007 16:22:30 +0000 (16:22 +0000)
committerrobertmh <robertmh@localhost>
Mon, 5 Nov 2007 16:22:30 +0000 (16:22 +0000)
* util/update-grub.in: Allow files in ${update_grub_dir} to contain
spaces.  Skip non-regular files.

ChangeLog
util/update-grub.in

index 5eeb9982c4b30a2f67c19b4cc7adfea0442e7ef9..7824adbc423686c7e0a8ec2329d941c23ccf8c0c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-05  Robert Millan  <rmh@aybabtu.com>
+
+       * util/update-grub.in: Allow files in ${update_grub_dir} to contain
+       spaces.  Skip non-regular files.
+
 2007-11-05  Robert Millan  <rmh@aybabtu.com>
 
        * kern/disk.c (grub_disk_firmware_fini)
index 37a5e4ff6375a9b3a0fc67f21596be5e52e3c53c..f9f69b97fd357966e6a68dcd194f0766215af04e 100644 (file)
@@ -141,14 +141,14 @@ cat << EOF
 EOF
 
 for i in ${update_grub_dir}/* ; do
-  case $i in
+  case "$i" in
     # emacsen backup files. FIXME: support other editors
     *~) ;;
     *)
-      if test -x $i ; then
+      if test -f "$i" && test -x "$i" ; then
         echo
         echo "### BEGIN $i ###"
-        $i
+        "$i"
         echo "### END $i ###"
       fi
     ;;