wok-next diff lxqt/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | e27eaf55057a |
children | 0709fcf9b0d7 |
line diff
1.1 --- a/lxqt/receipt Sat Oct 10 19:39:47 2015 +0200 1.2 +++ b/lxqt/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -25,25 +25,25 @@ 1.4 1.5 post_install() 1.6 { 1.7 - for i in $(ls -d $1/home/* 2> /dev/null); 1.8 - do [ -d $i ] && \ 1.9 - sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"startlxqt"|' -i \ 1.10 - $i/.config/slitaz/applications.conf \ 1.11 - $1/etc/slitaz/applications.conf 1.12 + for i in $(ls -d "$1"/home/* 2> /dev/null); 1.13 + do [ -d "$i" ] && \ 1.14 + sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"startlxqt"|' -i \ 1.15 + "$i/.config/slitaz/applications.conf" \ 1.16 + "$1/etc/slitaz/applications.conf" 1.17 done 1.18 1.19 for a in lxpanel pcmanfm tazpkg-notify xcompmgr; do 1.20 - grep -q LXQt $1/etc/xdg/autostart/$a.desktop || \ 1.21 - sed '/NotShowIn=/s|;$|&LXQt;|' -i $1/etc/xdg/autostart/$a.desktop 1.22 + grep -q LXQt "$1/etc/xdg/autostart/$a.desktop" || \ 1.23 + sed '/NotShowIn=/s|;$|&LXQt;|' -i "$1/etc/xdg/autostart/$a.desktop" 1.24 done 1.25 } 1.26 1.27 post_remove() 1.28 { 1.29 - for i in $(ls -d $1/home/* 2> /dev/null); 1.30 - do [ -d $i ] && \ 1.31 - sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \ 1.32 - $i/.config/slitaz/applications.conf \ 1.33 - $1/etc/slitaz/applications.conf 1.34 + for i in $(ls -d "$1"/home/* 2> /dev/null); 1.35 + do [ -d "$i" ] && \ 1.36 + sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \ 1.37 + "$i/.config/slitaz/applications.conf" \ 1.38 + "$1/etc/slitaz/applications.conf" 1.39 done 1.40 }