wok-6.x diff linux64-hfs/receipt @ rev 19607

Up: sed (4.3)
author Alexander Medvedev <devl547@gmail.com>
date Wed Jan 04 17:30:06 2017 +0000 (2017-01-04)
parents 08cf996a2307
children ffc20f9bd49f
line diff
     1.1 --- a/linux64-hfs/receipt	Mon Aug 17 11:03:13 2015 +0200
     1.2 +++ b/linux64-hfs/receipt	Wed Jan 04 17:30:06 2017 +0000
     1.3 @@ -33,14 +33,13 @@
     1.4  # Post install/remove commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
     1.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
     1.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
    1.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
    1.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
    1.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
    1.13  }
    1.14  
    1.15  post_remove()
    1.16  {
    1.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    1.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
    1.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
    1.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
    1.21  }
    1.22 -