Commit 3452e839 authored by Vincent Danjean's avatar Vincent Danjean
Browse files

Add support for VPL_PRECIOUS_FILES

As hard-coded PRECIOUS_FILES, VPL_PRECIOUS_FILES can be used to keep files for a longer time during a run.
VPL_PRECIOUS_FILES can be set in vpl_common_script.sh for example
parent 370edd95
......@@ -6,6 +6,8 @@ fi
# Files to keep until the very last moment
PRECIOUS_FILES="vpl_custom_setup.sh vpl_custom_run.sh"
# VPL_PRECIOUS_FILES can be set in vpl_common_script.sh
# if some files need to be kept until vpl_custom_setup.sh
error_message() {
message=$1
......@@ -71,7 +73,7 @@ if [ "$MODE" != evaluate ]
then
for file in *
do
if ! search $file $VPL_SUBFILES $PRECIOUS_FILES
if ! search $file $VPL_SUBFILES $PRECIOUS_FILES $VPL_PRECIOUS_FILES
then
rm -fr $file
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment