Skip to content

Commit 66c5f42

Browse files
committed
logdir is now set at beginning of main script
1 parent df7b9b8 commit 66c5f42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

run_get_phylomarkers_pipeline.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,8 @@ shift $((OPTIND - 1))
603603
# >>>BLOCK 0.1 SET THE ENVIRONMENT FOR THE PIPELINE <<< #
604604
#-------------------------------------------------------#
605605

606+
logdir=$(pwd)
607+
606608
# 0. Set the distribution base directory and OS-specific (linux|darwin) bindirs
607609
env_vars=$(set_pipeline_environment) # returns: $distrodir $bindir $OS $no_proc
608610
[ "$DEBUG" -eq 1 ] && echo "env_vars:$env_vars"
@@ -616,6 +618,8 @@ no_proc=$(echo "$env_vars"|awk '{print $4}')
616618

617619
#-----------------------------------------------------------------------------------------
618620

621+
622+
619623
[ "$DEBUG" -eq 1 ] && msg "distrodir:$distrodir|bindir:$bindir|OS:$OS|no_proc:$no_proc" DEBUG LBLUE
620624

621625
# 0.1 Determine if pipeline scripts are in $PATH;
@@ -640,8 +644,6 @@ check_dependencies 0
640644

641645
# check for bare minimum dependencies: bash R perl awk cut grep sed sort uniq Rscript
642646

643-
logdir=$(pwd)
644-
645647
if [ -z "$runmode" ]
646648
then
647649
msg "# ERROR: no runmode defined!" HELP RED

0 commit comments

Comments
 (0)