From 397323e42bb478f835b680425eee735e767bda12 Mon Sep 17 00:00:00 2001
From: "Moritz Schubotz (physikerwelt)" <wiki@physikerwelt.de>
Date: Thu, 27 Dec 2018 09:22:03 +0100
Subject: [PATCH] Do not commit as bibbot if not run on travis

---
 docs/publist.html   | 1 +
 src/html/pub_header | 1 +
 support/commitUp.sh | 1 +
 3 files changed, 3 insertions(+)

diff --git a/docs/publist.html b/docs/publist.html
index 9918a7b..90face1 100644
--- a/docs/publist.html
+++ b/docs/publist.html
@@ -1,6 +1,7 @@
 <html>
 <head>
     <link rel="stylesheet" type="text/css" href="https://assets.zim.uni-wuppertal.de/css/uni.css" media="all">
+    <base target="_parent">
 </head>
 <body>
 <div id="center_column">
diff --git a/src/html/pub_header b/src/html/pub_header
index eda6fff..fd5633d 100644
--- a/src/html/pub_header
+++ b/src/html/pub_header
@@ -1,6 +1,7 @@
 <html>
 <head>
     <link rel="stylesheet" type="text/css" href="https://assets.zim.uni-wuppertal.de/css/uni.css" media="all">
+    <base target="_parent">
 </head>
 <body>
 <div id="center_column">
diff --git a/support/commitUp.sh b/support/commitUp.sh
index 64a7c39..999dc1c 100755
--- a/support/commitUp.sh
+++ b/support/commitUp.sh
@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 mv gipp_bibertool.bib gipp.bib
+[ -z "$TRAVIS" ] && exit 1 || echo "skip commit. Travis environment variable not set."
 gpg --import bibbot.asc
 git config --global user.email "bibbot@ckurs.de"
 git config --global user.name "BibBot"
-- 
GitLab