wok-stable rev 9912
slitaz-icon: sed only if file exist
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 18:16:21 2011 +0200 (2011-05-17) |
parents | dc9eda924af6 |
children | 87ab3a68e96e |
files | slitaz-icon/receipt |
line diff
1.1 --- a/slitaz-icon/receipt Tue May 17 16:02:43 2011 +0200 1.2 +++ b/slitaz-icon/receipt Tue May 17 18:16:21 2011 +0200 1.3 @@ -21,7 +21,9 @@ 1.4 post_install() 1.5 { 1.6 # Default icon theme to SliTaz. 1.7 - sed -i s/Tango/SliTaz/ $1/etc/skel/.gtkrc-2.0 1.8 + if [ -f $1/etc/skel/.gtkrc-2.0 ]; then 1.9 + sed -i s/Tango/SliTaz/ $1/etc/skel/.gtkrc-2.0 1.10 + fi 1.11 # Some desktop files anf boxes have hardcore path to some Tango 1.12 # icons, so fake. 1.13 if [ ! -d $1/usr/share/icons/Tango/16x16 ]; then