summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-horde-Horde-Mime-Viewer.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/php-horde-Horde-Mime-Viewer.spec b/php-horde-Horde-Mime-Viewer.spec
index 2eebf20..a424cac 100644
--- a/php-horde-Horde-Mime-Viewer.spec
+++ b/php-horde-Horde-Mime-Viewer.spec
@@ -109,9 +109,10 @@ ln -s %{_datadir}/syntaxhighlighter %{buildroot}%{pear_hordedir}/js/syntaxhighli
%pre
# directory replace by a link
-if [ -d %{pear_hordedir}/js/syntaxhighlighter ]
+lib=%{pear_hordedir}/js/syntaxhighlighter
+if [ -d $lib -a ! -L $lib ]
then
- rm -rf %{pear_hordedir}/js/syntaxhighlighter
+ rm -rf $lib
fi