Skip to content
Snippets Groups Projects
Commit fc9faf51 authored by David Georg Reichelt's avatar David Georg Reichelt
Browse files

Only add $(pwd) if no absolute path is given

parent 7214b5c5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment