]> git.pld-linux.org Git - packages/dic.git/commitdiff
- %post fix
authorAdam Gołębiowski <adamg@pld-linux.org>
Thu, 23 Jul 2009 09:05:16 +0000 (09:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dic.spec -> 1.6

dic.spec

index ac00c1ef88f1f671fcd165913b2f9cea05097fd7..8071a310579b5e548a3959413caba8b737acabdb 100644 (file)
--- a/dic.spec
+++ b/dic.spec
@@ -89,4 +89,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_datadir}/mc/extfs/mcdic
 
 %post mc
-grep mcdic %{mcextfs} &> /dev/null || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}
+if [ -f %{mcextfs} ]; then
+       grep -q mcdic %{mcextfs} || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}
+fi
This page took 0.076281 seconds and 4 git commands to generate.