Skip to content

Commit

Permalink
Issue #392 : Install capabilities before changing the working directory.
Browse files Browse the repository at this point in the history
Capabilities installation working directory is expected to be a local directory. Therefore capabilities installation should be performed before changing the working directory to the analysis directory which is a shared folder.
  • Loading branch information
tcibinan committed Jun 14, 2019
1 parent 1015af9 commit bbdbd4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/pipeline-launch/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,9 @@ echo Executing task
echo "-"
######################################################

# Check whether there are any capabilities init scripts available and execute them before main SCRIPT
cp_cap_init

# As some environments do not support "sleep infinity" command - it is substituted with "sleep 10000d"
SCRIPT="${SCRIPT/sleep infinity/sleep 10000d}"

Expand All @@ -1181,9 +1184,6 @@ fi
cd $ANALYSIS_DIR
echo "CWD is now at $ANALYSIS_DIR"

# Check whether there are any capabilities init scripts available and execute them before main SCRIPT
cp_cap_init

# Tell the environment that initilization phase is finished and a source script is going to be executed
pipe_log SUCCESS "Environment initialization finished" "InitializeEnvironment"

Expand Down

0 comments on commit bbdbd4f

Please sign in to comment.