Skip to content
Snippets Groups Projects
Commit 6d5809cf authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #1254: Delay expansion of glob-patterns in FILELIST until eval(uation) time

parent c3f19b92
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ if [ $# -lt 1 ] || [ $# -gt 3 ]; then ...@@ -54,7 +54,7 @@ if [ $# -lt 1 ] || [ $# -gt 3 ]; then
fi fi
# List of files to copy (and later clean up) # List of files to copy (and later clean up)
FILELIST="$1.in* $1.stdout $1.run $1.py $1.parset* $1.log_prop $1.debug" FILELIST='$1.in* $1.stdout $1.run $1.py $1.parset* $1.log_prop $1.debug'
# Maximum run-time in seconds, defaults to 300 # Maximum run-time in seconds, defaults to 300
MAXTIME=${2:-300} MAXTIME=${2:-300}
...@@ -82,6 +82,6 @@ done ...@@ -82,6 +82,6 @@ done
STATUS=$? STATUS=$?
# Clean up # Clean up
trap 'for f in $FILELIST; do rm -rf "$f"; done; \ trap 'for f in $FILELIST; do eval rm -rf "$f"; done; \
trap - 0; trap - 0;
exit $STATUS' 0 1 2 3 15 exit $STATUS' 0 1 2 3 15
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment