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
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -11,7 +11,13 @@ echo "TAG NAME:" $4
echo "------ Get the previous GitLab Pages content --------"
set +e
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

echo "------ Add/update content --------"