#!/bin/bash

function check_cdo
{
   . load_ipslPack_env.sh
   module list >& ${TMP_MIGR_DATA}/myModuleList.txt 
   
   # Presence de la chaine "n) nco/" ou n est un nombre  
   nb_of_libLines=` grep -e '[[:digit:]]*) libccc_user/' ${TMP_MIGR_DATA}/myModuleList.txt | wc -l `

   if [ "x${nb_of_libLines}" == "x0" ]
   then
       # echo "1"
       exit 1
   fi

   # Plus besoin du myModuleList.txt
   rm -f ${TMP_MIGR_DATA}/myModuleList.txt > /dev/null 2>&1
   # echo "0"
   exit 0

}


check_cdo
