Skip to content
Snippets Groups Projects
Commit bc4bd2ab authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Small fix to get the project name

parent 1d2be53f
Branches
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ rm out/*.md ...@@ -23,7 +23,7 @@ rm out/*.md
echo "------ Parsing repo URL --------" echo "------ Parsing repo URL --------"
HOST_URL=$(echo $1 | cut -d'/' -f 1-3) HOST_URL=$(echo $1 | cut -d'/' -f 1-3)
PROJECT_NAME=$(echo $1 | cut -d'/' -f 5- | cut -d'.' -f 1) PROJECT_NAME=$(echo $1 | grep -o '[^/]*$' | cut -d'.' -f 1)
echo "HOST URL:" $HOST_URL echo "HOST URL:" $HOST_URL
echo "PROJECT NAME:" $PROJECT_NAME echo "PROJECT NAME:" $PROJECT_NAME
echo "PROJECT ID:" $2 echo "PROJECT ID:" $2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment