Code

Fixed conditions
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 May 2010 13:39:19 +0000 (13:39 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 May 2010 13:39:19 +0000 (13:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18387 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/redhat/rpm-make-gosa

index 35afae34cd3551571ee7626dd54827f5569b0f4f..2fd225ed9abac93d24b5019b2092a3dbb84ab533 100755 (executable)
@@ -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