From ca9b4bb71048510c36edaf243699a2db13582c6c Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 12 May 2010 13:39:19 +0000 Subject: [PATCH] Fixed conditions git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18387 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/redhat/rpm-make-gosa | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.30.2