Revision 3ba3c134 modules/script_grandes_molecules+diss.sh

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