Changeset 896


Ignore:
Timestamp:
07/12/13 15:34:20 (11 years ago)
Author:
sdipsl
Message:
  • ask confirmation before erasing something. see #133
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_clean_month

    r832 r896  
    196196 
    197197  if ( [ X${run_Configuration_CumulPeriod} = X ] || [ X${run_Configuration_CumulPeriod} = X1 ] ); then 
    198     echo "CumulPeriod=1 so we erase run.card to start properly." 
    199     IGCM_sys_Rm ${SUBMIT_DIR}/run.card 
     198 
     199    echo -e "\033[1;32mCumulPeriod=1 so we want to erase run.card to start properly. Do you want that too?" 
     200    echo -n -e " Your answer (y/n) : \033[m" 
     201    read reponse 
     202    case ${reponse} in 
     203 
     204      oui|OUI|o|y|yes|YES) 
     205        echo "OK. Now you can submit the Job : ${SUBMIT_DIR}/Job_${config_UserChoices_JobName}." 
     206        IGCM_sys_Rm ${SUBMIT_DIR}/run.card 
     207        ;; 
     208      non|NON|n|no|NO) 
     209        echo "Nothing to do !" 
     210        ;; 
     211    esac 
     212 
    200213  fi 
    201214fi 
Note: See TracChangeset for help on using the changeset viewer.