wok diff coreutils-file-attributes/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 2b9f96603415
children 6fab3264ba87
line diff
     1.1 --- a/coreutils-file-attributes/receipt	Sat Aug 10 13:52:56 2013 +0000
     1.2 +++ b/coreutils-file-attributes/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -31,18 +31,16 @@
     1.4  #
     1.5  pre_install()
     1.6  {
     1.7 -	local root
     1.8 -	root=$1
     1.9  	echo "Processing pre-install commands..."
    1.10  	echo -n "Removing all Busybox replaced utils... "
    1.11 -	rm -f $root/bin/chown $root/bin/chgrp $root/bin/chmod $root/bin/touch
    1.12 +	rm -f "$1/bin/chown" "$1/bin/chgrp" "$1/bin/chmod" "$1/bin/touch"
    1.13  	status
    1.14  }
    1.15  
    1.16  post_remove()
    1.17  {
    1.18 -	ln -s /bin/busybox $1/bin/chown
    1.19 -	ln -s /bin/busybox $1/bin/chgrp
    1.20 -	ln -s /bin/busybox $1/bin/chmod
    1.21 -	ln -s /bin/busybox $1/bin/touch
    1.22 +	ln -s /bin/busybox "$1/bin/chown"
    1.23 +	ln -s /bin/busybox "$1/bin/chgrp"
    1.24 +	ln -s /bin/busybox "$1/bin/chmod"
    1.25 +	ln -s /bin/busybox "$1/bin/touch"
    1.26  }