wok diff pcsc-lite/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 51a1ebbda768
children 8dd8bab3f0ca
line diff
     1.1 --- a/pcsc-lite/receipt	Fri Oct 18 19:43:55 2013 +0000
     1.2 +++ b/pcsc-lite/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -40,11 +40,9 @@
     1.4  # Daemon options in: daemons.conf
     1.5  post_install()
     1.6  {
     1.7 -	local root
     1.8 -	root=$1
     1.9 -	if ! grep -q 'PCSCD_OPTIONS' $root/etc/daemons.conf; then
    1.10 -		echo '# PC/SC smart card daemon options.' >> $root/etc/daemons.conf
    1.11 -		echo 'PCSCD_OPTIONS=""' >> $root/etc/daemons.conf
    1.12 -		echo '' >> $root/etc/daemons.conf
    1.13 +	if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"; then
    1.14 +		echo '# PC/SC smart card daemon options.' >> "$1/etc/daemons.conf"
    1.15 +		echo 'PCSCD_OPTIONS=""' >> "$1/etc/daemons.conf"
    1.16 +		echo '' >> "$1/etc/daemons.conf"
    1.17  	fi
    1.18  }