From: cajus Date: Wed, 12 May 2010 13:39:19 +0000 (+0000) Subject: Fixed conditions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ca9b4bb71048510c36edaf243699a2db13582c6c;p=gosa.git Fixed conditions git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18387 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/redhat/rpm-make-gosa b/gosa-core/redhat/rpm-make-gosa index 35afae34c..2fd225ed9 100755 --- a/gosa-core/redhat/rpm-make-gosa +++ b/gosa-core/redhat/rpm-make-gosa @@ -81,31 +81,31 @@ mkdir -p %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@ echo "%{buildroot} <<---------" -if [ -e ./html/* ]; then +if ls ./html/* &> /dev/null ;then mv ./html/* %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@ fi # Move contrib if available mkdir -p %{buildroot}/usr/share/doc/%{name} -if [ -e ./contrib/* ]; then +if ls ./contrib/* &> /dev/null ;then mv ./contrib %{buildroot}/usr/share/doc/%{name} fi # Move help mkdir -p %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@ -if [ -e ./help/* ]; then +if ls ./help/* &> /dev/null ;then mv ./help/* %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@ fi # Copy etc mkdir -p %{buildroot}/etc/gosa -if [ -e ./etc/* ]; then +if ls ./etc/* &> /dev/null ;then mv ./etc/* %{buildroot}/etc/gosa fi # Move localization mkdir -p %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@ -if [ -e ./locale/* ]; then +if ls ./local/* &> /dev/null ;then mv ./locale/* %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@ fi