From fc9faf5124e042fdeb15881ce486d3c114ddaca7 Mon Sep 17 00:00:00 2001 From: David Georg Reichelt <davidgeorg_reichelt@dagere.de> Date: Fri, 20 Aug 2021 15:26:45 +0200 Subject: [PATCH] Only add $(pwd) if no absolute path is given --- frameworks/runR.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frameworks/runR.sh b/frameworks/runR.sh index 3f4a207..46a1c04 100755 --- a/frameworks/runR.sh +++ b/frameworks/runR.sh @@ -3,7 +3,15 @@ then echo "Please pass the folder that should be analyzed" fi -BASE_DIR=$(pwd)/$1 +if [[ "$1" = /* ]] +then + echo "absolute path" + BASE_DIR=$1 +else + echo "relative path" + BASE_DIR=$(pwd)/$1 +fi + source common-functions.sh source $1/labels.sh -- GitLab