Last change
on this file since 3108 was
1911,
checked in by aclsce, 12 years ago
|
- Modified to not create tmp files in current directory
|
-
Property svn:executable set to
*
|
File size:
499 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | function check_cdo |
---|
4 | { |
---|
5 | . load_ipslPack_env.sh |
---|
6 | module list >& ${TMP_MIGR_DATA}/myModuleList.txt |
---|
7 | |
---|
8 | # Presence de la chaine "n) nco/" ou n est un nombre |
---|
9 | nb_of_libLines=` grep -e '[[:digit:]]*) libccc_user/' ${TMP_MIGR_DATA}/myModuleList.txt | wc -l ` |
---|
10 | |
---|
11 | if [ "x${nb_of_libLines}" == "x0" ] |
---|
12 | then |
---|
13 | # echo "1" |
---|
14 | exit 1 |
---|
15 | fi |
---|
16 | |
---|
17 | # Plus besoin du myModuleList.txt |
---|
18 | rm -f ${TMP_MIGR_DATA}/myModuleList.txt > /dev/null 2>&1 |
---|
19 | # echo "0" |
---|
20 | exit 0 |
---|
21 | |
---|
22 | } |
---|
23 | |
---|
24 | |
---|
25 | check_cdo |
---|
Note: See
TracBrowser
for help on using the repository browser.