Changeset 77 for trunk/src/dlogd.sh


Ignore:
Timestamp:
04/13/10 15:11:52 (14 years ago)
Author:
pinsard
Message:

indent shell scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dlogd.sh

    r75 r77  
    6060system=$(uname) 
    6161case "${system}" in 
    62 AIX|IRIX64) 
    63   echo " www : no specific posix checking" 
    64 ;; 
    65 *) 
    66   set -o posix 
    67 ;; 
     62   AIX|IRIX64) 
     63      echo " www : no specific posix checking" 
     64   ;; 
     65   *) 
     66      set -o posix 
     67   ;; 
    6868esac 
    6969unset system 
     
    8282if [ "${IRCAAM_LOG}" = "" ] 
    8383then 
    84  echo " eee : \${IRCAAM_LOG} not defined" 
    85  exit 1 
     84   echo " eee : \${IRCAAM_LOG} not defined" 
     85   exit 1 
    8686fi 
    8787# 
     
    8989if [ ! -d ${IRCAAM_LOG} ] 
    9090then 
    91  echo " eee : ${IRCAAM_LOG} not found" 
    92  exit 1 
     91   echo " eee : ${IRCAAM_LOG} not found" 
     92   exit 1 
    9393fi 
    9494# 
     
    9696if [ ! -x ${IRCAAM_LOG} ] 
    9797then 
    98  echo " eee : ${IRCAAM_LOG} not reachable" 
    99  exit 1 
     98   echo " eee : ${IRCAAM_LOG} not reachable" 
     99   exit 1 
    100100fi 
    101101# check for write permission on IRCAAM_LOG 
    102102if [ ! -w ${IRCAAM_LOG} ] 
    103103then 
    104  echo " eee : ${IRCAAM_LOG} not writable" 
    105  exit 1 
     104   echo " eee : ${IRCAAM_LOG} not writable" 
     105   exit 1 
    106106fi 
    107107# 
     
    111111if [ ${tmp} -eq 0 ] 
    112112then 
    113  if [ "${log}" = "" ] 
    114  then 
    115   echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2 
    116   exit 1 
    117  else 
    118   # destruction du fichier ${log} 
    119   /bin/rm -i ${log} 
    120   exit 0 
    121  fi 
     113   if [ "${log}" = "" ] 
     114   then 
     115      echo "${command} : eee : no release of ${IRCAAM_LOG}/${1}.log" >&2 
     116      exit 1 
     117   else 
     118      # destruction du fichier ${log} 
     119      /bin/rm -i ${log} 
     120      exit 0 
     121   fi 
    122122else 
    123  exit 1 
     123   exit 1 
    124124fi 
Note: See TracChangeset for help on using the changeset viewer.