wok diff libQtGui/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 17c84cd0c81a
children 486dbfc17892
line diff
     1.1 --- a/libQtGui/receipt	Sun Oct 19 12:21:07 2014 +0200
     1.2 +++ b/libQtGui/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -29,9 +29,9 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -        for i in $(ls $1/home 2> /dev/null); do
     1.8 -                [ -f /home/$i/.config/Trolltech.conf ] && continue
     1.9 -                cp $1/etc/skel/.config/Trolltech.conf $1/home/$i/.config
    1.10 -                chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.config
    1.11 +        for i in $(ls "$1/home" 2> /dev/null); do
    1.12 +                [ -f "/home/$i/.config/Trolltech.conf" ] && continue
    1.13 +                cp "$1/etc/skel/.config/Trolltech.conf" "$1/home/$i/.config"
    1.14 +                chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config"
    1.15          done
    1.16  }