wok-6.x diff busybox/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 | 994ab4549367 |
children | 3d18330745fd |
line diff
1.1 --- a/busybox/receipt Sat Nov 21 14:15:15 2015 +0100 1.2 +++ b/busybox/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -168,8 +168,8 @@ 1.4 local i 1.5 cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install 1.6 answer="" 1.7 - for i in $(cat $1$INSTALLED/$PACKAGE/files.list); do 1.8 - [ -f $1$i ] || continue 1.9 + for i in $(cat "$1$INSTALLED/$PACKAGE/files.list"); do 1.10 + [ -f "$1$i" ] || continue 1.11 case "$i" in 1.12 /bin/busybox) continue ;; 1.13 *bin/*) ;; 1.14 @@ -183,7 +183,7 @@ 1.15 *) answer="Y";; 1.16 esac 1.17 fi 1.18 - cp -a $1$i $1$i-busybox-install 1.19 + cp -a "$1$i" "$1$i-busybox-install" 1.20 done 1.21 } 1.22 1.23 @@ -193,10 +193,10 @@ 1.24 [ -f /etc/resolv.conf-busybox-install ] && 1.25 mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf 1.26 while read i ; do 1.27 - [ -f $1$i-busybox-install ] || continue 1.28 - mv $1$i-busybox-install $1$i 1.29 - done < $1$INSTALLED/$PACKAGE/files.list 1.30 - chmod 4755 $1/bin/busybox 1.31 + [ -f "$1$i-busybox-install" ] || continue 1.32 + mv "$1$i-busybox-install" "$1$i" 1.33 + done < "$1$INSTALLED/$PACKAGE/files.list" 1.34 + chmod 4755 "$1/bin/busybox" 1.35 1.36 touch $root/etc/daemons.conf 1.37 # /etc/daemons.conf (tftp + dnsd + httpd may not be present)