Commit 7a51875e authored by rafaelatc3sl's avatar rafaelatc3sl

Issue #1: Fix relative path

Signed-off-by: 's avatarrafaelatc3sl <rpd17@c3sl>
parent f79c571b
Pipeline #19393 passed with stage
in 51 seconds
......@@ -15,6 +15,12 @@ fi
task=$1
workspace=${2:-"./data"}
# transform relative path into absolute path,
# only when the path is indicated
if [[ $# -eq "2" ]]; then
workspace="$(cd $workspace && pwd)"
fi
# Make independent of path
basePath=$(echo $BASH_SOURCE | rev | cut -c 11- | rev)
cd $basePath
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment