wok diff linux-libre/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 1067bb7f1e24 |
children | 6fab3264ba87 |
line diff
1.1 --- a/linux-libre/receipt Wed Dec 16 15:49:50 2015 +0100 1.2 +++ b/linux-libre/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -173,11 +173,11 @@ 1.4 chroot "$1/" depmod -a $VERSION-slitaz 1.5 # GRUB stuff. 1.6 if [ -f "$1/boot/grub/menu.lst" ]; then 1.7 - root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1` 1.8 - grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1` 1.9 + root_dev=`cat "$1/boot/grub/menu.lst" | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1` 1.10 + grub_dev=`cat "$1/boot/grub/menu.lst" | grep "root (" | head -n 1` 1.11 # Add new kernel entry in case of upgrade for installed system. 1.12 - if ! grep -q $PACKAGE-$VERSION-slitaz $1/boot/grub/menu.lst; then 1.13 - cat >> $1/boot/grub/menu.lst << EOT 1.14 + if ! grep -q $PACKAGE-$VERSION-slitaz "$1/boot/grub/menu.lst"; then 1.15 + cat >> "$1/boot/grub/menu.lst" << EOT 1.16 1.17 title SliTaz GNU/Linux (Kernel $VERSION-slitaz) 1.18 $grub_dev