wok-6.x diff pekwm/receipt @ rev 19488
Update SliTaz projects: slitaz-base-files (312), slitaz-configs (295), slitaz-doc (158), slitaz-tools (1004), tazinst (83), tazlito (439), tazpanel (606), tazpkg (927), tazusb (192), tazweb (172).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 12 13:09:26 2016 +0200 (2016-11-12) |
parents | 5d53e8ccbc8d |
children | 970c5ec9a60a |
line diff
1.1 --- a/pekwm/receipt Thu Jan 08 02:04:05 2015 +0200 1.2 +++ b/pekwm/receipt Sat Nov 12 13:09:26 2016 +0200 1.3 @@ -46,17 +46,17 @@ 1.4 # Pekwm searches for default font path (100dpi folder) for xsever to render 1.5 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts 1.6 # by linking to ttf-dejavu 1.7 - if [ ! -d $1/usr/share/fonts/X11/100dpi/ ]; then 1.8 - mkdir -p $1/usr/share/fonts/X11/100dpi 1.9 - cd $1/usr/share/fonts/X11/100dpi 1.10 + if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then 1.11 + mkdir -p "$1/usr/share/fonts/X11/100dpi" 1.12 + cd "$1/usr/share/fonts/X11/100dpi" 1.13 ln -s ../../truetype/ttf-dejavu/* . 1.14 fi 1.15 1.16 - res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` 1.17 + res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.18 # Adding WM to SLIM available sessions. 1.19 if ! echo "$res" | grep -q $PACKAGE; then 1.20 echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.21 - sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf 1.22 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" 1.23 status 1.24 fi 1.25 } 1.26 @@ -64,7 +64,7 @@ 1.27 post_remove() 1.28 { 1.29 # Remove WM from SLIM available sessions. 1.30 - if grep -q $PACKAGE $1/etc/slim.conf; then 1.31 - sed -i s/,$PACKAGE// $1/etc/slim.conf 1.32 + if grep -q $PACKAGE "$1/etc/slim.conf"; then 1.33 + sed -i s/,$PACKAGE// "$1/etc/slim.conf" 1.34 fi 1.35 }