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

Stop if content.zip does not exist as no need to upgrade

parent 19447f09
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,13 @@ echo "TAG NAME:" $4 ...@@ -11,7 +11,13 @@ echo "TAG NAME:" $4
echo "------ Get the previous GitLab Pages content --------" echo "------ Get the previous GitLab Pages content --------"
set +e set +e
curl --fail "$2/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";
else
echo 'Pages do not exist yet';
exit 0
fi
set -e set -e
echo "------ Add/update content --------" echo "------ Add/update content --------"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment