Skip to content

Commit

Permalink
Use symlinks instead if copies in job script.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Jan 13, 2020
1 parent 183dd59 commit 3a12c0c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions law/job/job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ action() {
mkdir -p "$LAW_JOB_HOME"
mkdir -p "$TMP"

if [ ! -z "{{input_files}}" ]; then
cp {{input_files}} "$LAW_JOB_HOME/"
fi

cd "$LAW_JOB_HOME"

local input_files="{{input_files}}"
if [ ! -z "$input_files" ]; then
for input_file in $input_files; do
ln -s "$LAW_JOB_INIT_DIR/$input_file" .
done
fi


#
# helper functions
Expand Down

0 comments on commit 3a12c0c

Please sign in to comment.