New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 14884 – NEMO

Changeset 14884


Ignore:
Timestamp:
2021-05-18T20:49:47+02:00 (3 years ago)
Author:
acc
Message:

Branch: sette_ticket2673. Make sure a dry-run performs no action even if NEMO_VALIDATION_DIR does not exist. #2673

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_ticket2673/sette.sh

    r14883 r14884  
    168168# 
    169169if [ ! -d $NEMO_VALIDATION_DIR ] ; then 
     170 if [ ${dry_run} -eq 0 ] ; then 
    170171  while true; do 
    171172      read -p "$NEMO_VALIDATION_DIR does not exist. Do you wish to create it? " yn 
     
    176177      esac 
    177178  done 
     179 else 
     180  echo "$NEMO_VALIDATION_DIR does not exist" 
     181  echo "but this is a dry run so it will not be created" 
     182 fi 
    178183fi 
    179184if [ ! -z $SETTE_SUB_VAL ] ; then 
    180  if [ ! -d $NEMO_VALIDATION_DIR/$SETTE_SUB_VAL ] ; then 
     185 if [ ! -d $NEMO_VALIDATION_DIR/$SETTE_SUB_VAL ] && [ ${dry_run} -eq 0 ] ; then 
    181186    mkdir $NEMO_VALIDATION_DIR/$SETTE_SUB_VAL 
    182187 fi 
Note: See TracChangeset for help on using the changeset viewer.