Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2076 by niro, Fri May 10 09:09:36 2013 UTC revision 2077 by niro, Fri May 10 10:46:47 2013 UTC
# Line 433  list_files_in_directory() Line 433  list_files_in_directory()
433   # default to files   # default to files
434   [[ -z ${type} ]] && type=f   [[ -z ${type} ]] && type=f
435    
436   for i in $(find ${path} ${opts} -type ${type} | sort)   for i in $(find ${path} ${opts} -type ${type} -print '%f\n' | sort)
437   do   do
438   if [[ -z ${retval} ]]   if [[ -z ${retval} ]]
439   then   then
440   retval="$(basename ${i})"   retval="${i}"
441   else   else
442   retval="${retval} $(basename ${i})"   retval+=" ${i}"
443   fi   fi
444   done   done
445    
# Line 450  print_version() Line 450  print_version()
450  {  {
451   echo "mcored-$(<${MCLIBDIR}/VERSION)"   echo "mcored-$(<${MCLIBDIR}/VERSION)"
452  }  }
   

Legend:
Removed from v.2076  
changed lines
  Added in v.2077