Issue : Install capabilities before changing the working directory.
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.
@@ -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}"
@@ -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"
