wok diff ncmpcpp/receipt @ rev 20106
dropbear: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 09 21:35:33 2017 +0200 (2017-10-09) |
parents | 17c84cd0c81a |
children | 970c5ec9a60a |
line diff
1.1 --- a/ncmpcpp/receipt Sun Oct 19 12:21:07 2014 +0200 1.2 +++ b/ncmpcpp/receipt Mon Oct 09 21:35:33 2017 +0200 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 }