diff --git a/publish_on_pages.sh b/publish_on_pages.sh
index 38cc67393e6f34b57e144828260502fdcbf16fe4..f6df54afd002d3ac074377bc547d9d18e8ed19a9 100644
--- a/publish_on_pages.sh
+++ b/publish_on_pages.sh
@@ -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 --------"