wok-6.x diff wbar/receipt @ rev 20491
libzim-dev: add libzim.pc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 27 23:06:17 2018 +0200 (2018-10-27) |
parents | c4fad9f4bde4 |
children | 8dd8bab3f0ca |
line diff
1.1 --- a/wbar/receipt Tue Mar 10 08:31:24 2015 +0100 1.2 +++ b/wbar/receipt Sat Oct 27 23:06:17 2018 +0200 1.3 @@ -38,14 +38,14 @@ 1.4 # Post install/remove commands for Tazpkg. 1.5 post_install() 1.6 { 1.7 - rm -f $1/etc/dot.wbar 1.8 - [ -s $1/etc/wbar/dot.wbar ] || rm -f $1/etc/wbar/dot.wbar 1.9 - mv $1/etc/wbar/dot.wbar $1/etc/wbar/dot.wbar.old 2> /dev/null && cat <<EOT 1.10 + rm -f "$1/etc/dot.wbar" 1.11 + [ -s "$1/etc/wbar/dot.wbar" ] || rm -f "$1/etc/wbar/dot.wbar" 1.12 + mv "$1/etc/wbar/dot.wbar" "$1/etc/wbar/dot.wbar.old" 2> /dev/null && cat <<EOT 1.13 -------- 1.14 Your old wbar configuration is saved into /etc/wbar/dot.wbar.old 1.15 -------- 1.16 EOT 1.17 - cat > $1/etc/wbar/dot.wbar << EOT 1.18 + cat > "$1/etc/wbar/dot.wbar" << EOT 1.19 # The Bar && Font 1.20 i: /usr/share/wbar/iconpack/osxbarback.png 1.21 t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12 1.22 @@ -54,7 +54,7 @@ 1.23 EOT 1.24 while read icon exe text; do 1.25 [ -x $exe ] || continue 1.26 - cat >> $1/etc/wbar/dot.wbar << EOT 1.27 + cat >> "$1/etc/wbar/dot.wbar" << EOT 1.28 i: $icon 1.29 c: $exe 1.30 t: $text 1.31 @@ -68,8 +68,8 @@ 1.32 /usr/share/pixmaps/xterm.png /usr/bin/xterm xterm 1.33 /usr/share/pixmaps/leafpad.png /usr/bin/leafpad leafpad 1.34 EOT 1.35 - grep -q 'wbar' $1/etc/xdg/openbox/autostart.sh || 1.36 - cat >> $1/etc/xdg/openbox/autostart.sh << EOT 1.37 + grep -q 'wbar' "$1/etc/xdg/openbox/autostart.sh" || 1.38 + cat >> "$1/etc/xdg/openbox/autostart.sh" << EOT 1.39 1.40 # Wbar icons panel. 1.41 (sleep 2 && wbar -above-desk -pos top center -jumpf 0 -zoomf 1.5 -bpress -balfa 0) & 1.42 @@ -78,6 +78,6 @@ 1.43 1.44 post_remove() 1.45 { 1.46 - sed -i '/Wbar/ d' $1/etc/xdg/openbox/autostart.sh 1.47 - sed -i '/wbar/ d' $1/etc/xdg/openbox/autostart.sh 1.48 + sed -i '/Wbar/ d' "$1/etc/xdg/openbox/autostart.sh" 1.49 + sed -i '/wbar/ d' "$1/etc/xdg/openbox/autostart.sh" 1.50 }