wok-current diff lxde/receipt @ rev 19905

Up backup-manager (0.7.13)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 10 09:25:19 2017 +0200 (2017-04-10)
parents d98ecc5a919e
children 970c5ec9a60a
line diff
     1.1 --- a/lxde/receipt	Sun Aug 02 20:30:04 2015 +0200
     1.2 +++ b/lxde/receipt	Mon Apr 10 09:25:19 2017 +0200
     1.3 @@ -29,12 +29,10 @@
     1.4  # Add WM to SLIM available sessions.
     1.5  post_install()
     1.6  {
     1.7 -	local root
     1.8 -	root=$1
     1.9 -	res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
    1.10 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
    1.11  	if ! echo "$res" | grep -q $PACKAGE; then
    1.12  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.13 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $root/etc/slim.conf
    1.14 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
    1.15  		status
    1.16  	fi
    1.17  }
    1.18 @@ -42,9 +40,7 @@
    1.19  # Remove WM from SLIM available sessions.
    1.20  post_remove()
    1.21  {
    1.22 -	local root
    1.23 -	root=$1
    1.24  	if grep -q $PACKAGE $root/etc/slim.conf; then
    1.25 -		sed -i s/,$PACKAGE// $root/etc/slim.conf
    1.26 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
    1.27  	fi
    1.28  }