wok-current diff tiptop/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 ed8073aa8cf0
line diff
     1.1 --- a/tiptop/receipt	Sun Oct 19 12:21:07 2014 +0200
     1.2 +++ b/tiptop/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -31,14 +31,14 @@
     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/.tiptoprc ] && continue
     1.9 -		cp $1/etc/skel/.tiptoprc $1/home/$i
    1.10 -		chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.tiptoprc
    1.11 +	for i in $(ls "$1/home" 2> /dev/null); do
    1.12 +		[ -f "/home/$i/.tiptoprc" ] && continue
    1.13 +		cp "$1/etc/skel/.tiptoprc" "$1/home/$i"
    1.14 +		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc"
    1.15  	done
    1.16  }
    1.17  
    1.18  post_remove()
    1.19  {
    1.20 -	rm -f $1/home/*/.tiptoprc
    1.21 +	rm -f "$1"/home/*/.tiptoprc
    1.22  }