Magellan Linux

Diff of /trunk/mage/usr/lib/mage/mage4.functions.sh

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

revision 2225 by niro, Wed Oct 16 07:49:19 2013 UTC revision 2268 by niro, Fri Oct 25 06:48:57 2013 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # Magellan Linux Installer Functions (mage.functions.sh)  # Magellan Linux Installer Functions (mage.functions.sh)
3  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.38 2008-10-05 10:32:24 niro Exp $  # $Id$
4    
5  COLRED="\033[1;6m\033[31m"  COLRED="\033[1;6m\033[31m"
6  COLGREEN="\033[1;6m\033[32m"  COLGREEN="\033[1;6m\033[32m"
# Line 79  mchecksum() Line 79  mchecksum()
79   retval=0   retval=0
80   while read sum dest   while read sum dest
81   do   do
82   if [ -s ${dest} ]   if [ ! -s ${dest} ]
83   then   then
  echo "${dest}: file-size OK"  
  else  
84   echo "${dest}: file is empty ;("   echo "${dest}: file is empty ;("
85   retval=127   retval=127
86   fi   fi
87   done < ${file}   done < ${file}
88   if [[ ${retval} != 127 ]]   if [[ ${retval} != 127 ]]
89   then   then
  # insert an empty line for cosmetic  
  echo  
   
90   # be verbose here   # be verbose here
91   ${cmd} -c ${file} #&> /dev/null   ${cmd} -c ${file} #&> /dev/null
92   retval="$?"   retval="$?"

Legend:
Removed from v.2225  
changed lines
  Added in v.2268