wok diff dwm/receipt @ rev 19549

Up cacerts (20161124), perl no more need in post_install
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 09 03:40:48 2016 +0200 (2016-12-09)
parents 5d53e8ccbc8d
children 970c5ec9a60a
line diff
     1.1 --- a/dwm/receipt	Thu Jan 08 02:04:05 2015 +0200
     1.2 +++ b/dwm/receipt	Fri Dec 09 03:40:48 2016 +0200
     1.3 @@ -42,7 +42,7 @@
     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 @@ -54,7 +54,7 @@
    1.13  post_remove()
    1.14  {
    1.15  	# Remove karmen from SLIM available sessions.
    1.16 -	if grep -q dwm $1/etc/slim.conf; then
    1.17 -		sed -i s/,dwm// $1/etc/slim.conf
    1.18 +	if grep -q dwm "$1/etc/slim.conf"; then
    1.19 +		sed -i s/,dwm// "$1/etc/slim.conf"
    1.20  	fi
    1.21  }