wok diff razorqt/receipt @ rev 19253

Up util-linux* (2.28); use new cook functions here.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 30 22:48:07 2016 +0300 (2016-06-30)
parents 1067bb7f1e24
children 023f0e633825
line diff
     1.1 --- a/razorqt/receipt	Wed Dec 16 15:49:50 2015 +0100
     1.2 +++ b/razorqt/receipt	Thu Jun 30 22:48:07 2016 +0300
     1.3 @@ -96,11 +96,11 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
     1.8 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
     1.9  	# Adding WM to SLIM available sessions.
    1.10  	if ! echo "$res" | grep -q $PACKAGE; then
    1.11  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.12 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $1/etc/slim.conf
    1.13 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
    1.14  		status
    1.15  	fi
    1.16  	true
    1.17 @@ -109,7 +109,7 @@
    1.18  post_remove()
    1.19  {
    1.20  	# Remove WM from SLIM available sessions.
    1.21 -	if grep -q $PACKAGE $1/etc/slim.conf; then
    1.22 -		sed -i s/,$PACKAGE// $1/etc/slim.conf
    1.23 +	if grep -q $PACKAGE "$1/etc/slim.conf"; then
    1.24 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
    1.25  	fi
    1.26  }