Revision 3ba3c134

b/dockOnSurf.sh
151 151
  echo '' 
152 152
fi
153 153

  
154
# Check wether the analyse directory already exists.
155
if [ "$only_ref" = true ] ; then
156
  echo ${MolOnSurf_results_path}/${molecule}/analyse
157
  if [ -d ${MolOnSurf_results_path}/${molecule}/analyse ]; then
158
      echo "It already exists an \"analyse\" directory. Do you want to delete it together with \"relaunched_calculations\"?"
159
      read delete_answer
160
    case "$delete_answer" in
161
      [yY][eE][sS]|[yY])
162
          rm -r ${MolOnSurf_results_path}/${molecule}/analyse
163
                  if [ -d ${MolOnSurf_results_path}/${molecule}/relaunched_calculations ]; then rm -r ${MolOnSurf_results_path}/${molecule}/relaunched_calculations; fi
164
          ;;
165
      *)
166
          echo "Now exiting"
167
                  exit
168
          ;;
169
      esac
170
  fi
171
fi
172

  
154 173
(kill -STOP $$; kill -CONT $$) &
155 174
disown 
156 175

  
b/modules/script_grandes_molecules+diss.sh
17 17

  
18 18

  
19 19
mol_dir=${MolOnSurf_results_path}/${nom_de_la_molecule}
20

  
21 20
list_errors=()
22

  
23
# Check wether the analyse directory already exists.
24
if [ -d ${mol_dir}/analyse ]; then 
25
	echo "It already exists an \"analyse\" directory. Do you want to delete it together with \"relaunched_calculations\"?"
26
	read delete_answer
27
  case "$delete_answer" in
28
    [yY][eE][sS]|[yY]) 
29
        rm -r ${mol_dir}/analyse
30
				if [ -d ${mol_dir}/relaunched_calculations ]; then rm -r ${mol_dir}/relaunched_calculations; fi
31
        ;;
32
    *)
33
        echo "Now exiting"
34
				exit
35
        ;;
36
	esac
37
fi
38

  
39 21
mkdir ${mol_dir}/analyse
40 22

  
41 23

  

Also available in: Unified diff