wok diff tmux-mem-cpu-load/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/tmux-mem-cpu-load/receipt	Sun Oct 19 12:21:07 2014 +0200
     1.2 +++ b/tmux-mem-cpu-load/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -35,11 +35,11 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	for i in $(ls $1/home 2> /dev/null); do
     1.8 -		grep -qs "tmux-mem-cpu-load" /home/$i/.tmux.conf && continue
     1.9 +	for i in $(ls "$1/home" 2> /dev/null); do
    1.10 +		grep -qs "tmux-mem-cpu-load" "/home/$i/.tmux.conf" && continue
    1.11  		echo -n "Checking for .tmux.conf for $i ..."
    1.12 -		cp -a $1/etc/skel/.tmux.conf /home/$i/
    1.13 -		chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.tmux.conf
    1.14 +		cp -a "$1/etc/skel/.tmux.conf" "/home/$i/"
    1.15 +		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
    1.16  		status
    1.17  	done
    1.18  }