wok diff alsa-utils/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 e0cfbb41587f
children f0a0b5091b4a
line diff
     1.1 --- a/alsa-utils/receipt	Fri Oct 24 10:25:36 2014 +0200
     1.2 +++ b/alsa-utils/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -51,14 +51,14 @@
     1.4  # sound card and settings working.
     1.5  pre_install()
     1.6  {
     1.7 -	if [ -f $1/etc/asound.state ]; then
     1.8 -		mv $1/etc/asound.state $1/tmp
     1.9 +	if [ -f "$1/etc/asound.state" ]; then
    1.10 +		mv "$1/etc/asound.state" "$1/tmp"
    1.11  	fi
    1.12  }
    1.13  
    1.14  post_install()
    1.15  {
    1.16 -	if [ -f $1/tmp/asound.state ]; then
    1.17 -		mv $1/tmp/asound.state $1/var/lib/alsa
    1.18 +	if [ -f "$1/tmp/asound.state" ]; then
    1.19 +		mv "$1/tmp/asound.state" "$1/var/lib/alsa"
    1.20  	fi
    1.21  }