Using env var instead of user name

This commit is contained in:
Louis Lacoste 2024-04-22 10:36:00 +02:00
parent c3b4144689
commit 64738095d9

View file

@ -19,7 +19,7 @@ SAMPLINGA=("uniform" "row" "col" "rowcol")
STRUCT=${STRUCTA[$(($(($((SGE_TASK_ID - 1)) + $((SGE_TASK_ID - 1)) / 4)) % 2))]}
SAMPLING=${SAMPLINGA[$(($((SGE_TASK_ID - 1)) % 4))]}
BASE_DIR="/home/llacoste/work/mia-stage-2024/"
BASE_DIR="/home/$USER/work/mia-stage-2024/"
LOG_DIR=$(echo "$BASE_DIR/logs")
if [ ! -d "$LOG_DIR" ]; then