Ignore:
Timestamp:
Jan 15, 2025, 1:50:20 PM (2 weeks ago)
Author:
jbclement
Message:

PEM:
Improvement of the Bash script tools in the deftank with an automatic error detection which ends the script with a message.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/multiple_exec.sh

    r3456 r3579  
    33### Script to execute multiple scripts in subdirectories ###
    44############################################################
     5set -e
     6trap 'echo -e "\033[31mError: an issue occurred in the script on line $LINENO! Please review the command and try again.\033[0m"' ERR
    57
     8############################################################
     9# Modify here the parameters for the script
     10###########################################
    611# Name of the file to execute in all subdirectories
    712script_name="launchPEM.sh"
     
    1217# Name of the template directory to skip
    1318tempdir_name="Template"
     19############################################################
     20
    1421
    1522# Traverse all subdirectories, excluding the template
Note: See TracChangeset for help on using the changeset viewer.