wok diff coreutils-context-user/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 d6ca18366f41
line diff
     1.1 --- a/coreutils-context-user/receipt	Sat Aug 10 13:52:56 2013 +0000
     1.2 +++ b/coreutils-context-user/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -36,19 +36,17 @@
     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/id
    1.12 -	rm -f $root/usr/bin/logname $root/usr/bin/whoami $root/usr/bin/who
    1.13 +	rm -f "$1/bin/id"
    1.14 +	rm -f "$1/usr/bin/logname" "$1/usr/bin/whoami" "$1/usr/bin/who"
    1.15  	status
    1.16  }
    1.17  
    1.18  post_remove()
    1.19  {
    1.20 -	ln -s /bin/busybox $1/bin/id
    1.21 -	ln -s /bin/busybox $1/usr/bin/logname
    1.22 -	ln -s /bin/busybox $1/usr/bin/whoami
    1.23 -	ln -s /bin/busybox $1/usr/bin/who
    1.24 +	ln -s /bin/busybox "$1/bin/id"
    1.25 +	ln -s /bin/busybox "$1/usr/bin/logname"
    1.26 +	ln -s /bin/busybox "$1/usr/bin/whoami"
    1.27 +	ln -s /bin/busybox "$1/usr/bin/who"
    1.28  }