wok diff coreutils-file-special/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-special/receipt	Sat Aug 10 13:52:56 2013 +0000
     1.2 +++ b/coreutils-file-special/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -38,31 +38,28 @@
     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/ln $root/bin/mkdir $root/bin/mknod $root/bin/rmdir
    1.12 -	rm -f $root/usr/bin/mkfifo $root/usr/bin/readlink
    1.13 +	rm -f "$1/bin/ln" "$1/bin/mkdir" "$1/bin/mknod" "$1/bin/rmdir"
    1.14 +	rm -f "$1/usr/bin/mkfifo" "$1/usr/bin/readlink"
    1.15  	status
    1.16  }
    1.17  
    1.18  pre_remove()
    1.19  {
    1.20  	# Need to handle the removal of ln
    1.21 -	cp -a -fd $1/bin/ln $1/bin/ln-coreutils
    1.22 +	cp -a -fd "$1/bin/ln" "$1/bin/ln-coreutils"
    1.23  }
    1.24 -
    1.25  post_remove()
    1.26  {
    1.27  	# Restore ln
    1.28 -	ln-coreutils -s /bin/busybox $1/bin/ln
    1.29 +	ln-coreutils -s /bin/busybox "$1/bin/ln"
    1.30  
    1.31 -	ln -s /bin/busybox $1/bin/mkdir
    1.32 -	ln -s /bin/busybox $1/bin/mknod
    1.33 -	ln -s /bin/busybox $1/bin/rmdir
    1.34 -	ln -s /bin/busybox $1/usr/bin/mkfifo
    1.35 -	ln -s /bin/busybox $1/usr/bin/readlink
    1.36 +	ln -s /bin/busybox "$1/bin/mkdir"
    1.37 +	ln -s /bin/busybox "$1/bin/mknod"
    1.38 +	ln -s /bin/busybox "$1/bin/rmdir"
    1.39 +	ln -s /bin/busybox "$1/usr/bin/mkfifo"
    1.40 +	ln -s /bin/busybox "$1/usr/bin/readlink"
    1.41  	
    1.42 -	rm -f $1/bin/ln-coreutils
    1.43 +	rm -f "$1/bin/ln-coreutils"
    1.44  }