wok diff coreutils-command/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-command/receipt Sat Aug 10 13:52:56 2013 +0000 1.2 +++ b/coreutils-command/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -38,23 +38,21 @@ 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/nice $root/bin/kill $root/bin/sleep 1.12 - rm -f $root/usr/bin/env $root/usr/bin/nohup $root/usr/bin/timeout 1.13 - rm -f $root/usr/sbin/chroot 1.14 + rm -f "$1/bin/nice" "$1/bin/kill" "$1/bin/sleep" 1.15 + rm -f "$1/usr/bin/env" "$1/usr/bin/nohup" "$1/usr/bin/timeout" 1.16 + rm -f "$1/usr/sbin/chroot" 1.17 status 1.18 } 1.19 1.20 post_remove() 1.21 { 1.22 - ln -s /bin/busybox $1/bin/nice 1.23 - ln -s /bin/busybox $1/bin/kill 1.24 - ln -s /bin/busybox $1/bin/sleep 1.25 - ln -s /bin/busybox $1/usr/bin/env 1.26 - ln -s /bin/busybox $1/usr/bin/nohup 1.27 - ln -s /bin/busybox $1/usr/bin/timeout 1.28 - ln -s /bin/busybox $1/usr/sbin/chroot 1.29 + ln -s /bin/busybox "$1/bin/nice" 1.30 + ln -s /bin/busybox "$1/bin/kill" 1.31 + ln -s /bin/busybox "$1/bin/sleep" 1.32 + ln -s /bin/busybox "$1/usr/bin/env" 1.33 + ln -s /bin/busybox "$1/usr/bin/nohup" 1.34 + ln -s /bin/busybox "$1/usr/bin/timeout" 1.35 + ln -s /bin/busybox "$1/usr/sbin/chroot" 1.36 }