wok diff ncmpcpp/receipt @ rev 19581
unetbootin: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 14:35:35 2016 +0100 (2016-12-25) |
parents | 17c84cd0c81a |
children | 970c5ec9a60a |
line diff
1.1 --- a/ncmpcpp/receipt Sun Oct 19 12:21:07 2014 +0200 1.2 +++ b/ncmpcpp/receipt Sun Dec 25 14:35:35 2016 +0100 1.3 @@ -40,13 +40,13 @@ 1.4 1.5 post_install() 1.6 { 1.7 - for i in $(ls $1/home 2> /dev/null); do 1.8 - [ -d $1/home/$i/.ncmpcpp ] && continue 1.9 + for i in $(ls "$1/home" 2> /dev/null); do 1.10 + [ -d "$1/home/$i/.ncmpcpp" ] && continue 1.11 echo -n "Enabling configuration files for $i ..." 1.12 - cp -a $1/etc/skel/.ncmpcpp $1/home/$i/ 1.13 - sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/'$i'/music"|' /home/$i/.ncmpcpp/config 1.14 + cp -a "$1/etc/skel/.ncmpcpp" "$1/home/$i/" 1.15 + sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/'$i'/music"|' "/home/$i/.ncmpcpp/config" 1.16 # Change permissions also 1.17 - chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.ncmpcpp 1.18 + chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.ncmpcpp" 1.19 done 1.20 status 1.21 }