From ff5f433815055446e0a76097c2946b62c76eb76f Mon Sep 17 00:00:00 2001 From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org> Date: Thu, 28 Sep 2023 10:35:53 +0200 Subject: [PATCH] Fix pages url parameter number --- publish_on_pages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/publish_on_pages.sh b/publish_on_pages.sh index 7d3f08a..797a285 100644 --- a/publish_on_pages.sh +++ b/publish_on_pages.sh @@ -4,15 +4,15 @@ DOCKER_IMAGE=python:3.9-slim-bullseye echo "\n------ Checking for docker image --------" docker pull "$DOCKER_IMAGE" -HOST_URL=$(echo $1 | cut -d'/' -f 1-3) -PROJECT_NAME=$(echo $1 | cut -d'/' -f 5- | cut -d'.' -f 1) +#HOST_URL=$(echo $1 | cut -d'/' -f 1-3) +#PROJECT_NAME=$(echo $1 | cut -d'/' -f 5- | cut -d'.' -f 1) echo "Pages URL:" $2 echo "PROJECT NAME:" $3 echo "TAG NAME:" $4 echo "------ Get the previous GitLab Pages content --------" set +e -curl --fail "$1/content.zip" -o "content.zip" +curl --fail "$2/content.zip" -o "content.zip" if [ -e "content.zip" ]; then unzip "content.zip"; rm "content.zip"; fi set -e -- GitLab