wok diff lxde/receipt @ rev 19043
sakura: update fr.po
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 17 13:35:47 2016 +0200 (2016-04-17) |
parents | d98ecc5a919e |
children | 970c5ec9a60a |
line diff
1.1 --- a/lxde/receipt Sun Aug 02 20:30:04 2015 +0200 1.2 +++ b/lxde/receipt Sun Apr 17 13:35:47 2016 +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 }