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

Fix pages url parameter number

parent 31362e54
Branches
No related tags found
No related merge requests found
...@@ -4,15 +4,15 @@ DOCKER_IMAGE=python:3.9-slim-bullseye ...@@ -4,15 +4,15 @@ DOCKER_IMAGE=python:3.9-slim-bullseye
echo "\n------ Checking for docker image --------" echo "\n------ Checking for docker image --------"
docker pull "$DOCKER_IMAGE" docker pull "$DOCKER_IMAGE"
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 | cut -d'/' -f 5- | cut -d'.' -f 1)
echo "Pages URL:" $2 echo "Pages URL:" $2
echo "PROJECT NAME:" $3 echo "PROJECT NAME:" $3
echo "TAG NAME:" $4 echo "TAG NAME:" $4
echo "------ Get the previous GitLab Pages content --------" echo "------ Get the previous GitLab Pages content --------"
set +e 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 if [ -e "content.zip" ]; then unzip "content.zip"; rm "content.zip"; fi
set -e set -e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment