wok-6.x diff ncmpcpp/receipt @ rev 19035
sakura: use Freedesktop standard icon
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Apr 12 15:20:41 2016 +0300 (2016-04-12) |
parents | 17c84cd0c81a |
children | 970c5ec9a60a |
line diff
1.1 --- a/ncmpcpp/receipt Sun Oct 19 12:21:07 2014 +0200 1.2 +++ b/ncmpcpp/receipt Tue Apr 12 15:20:41 2016 +0300 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 }